Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If the string containing symbols in the query of loki log on grafana, the query will fail #597

Open
chown1987 opened this issue Nov 13, 2024 · 19 comments

Comments

@chown1987
Copy link

Please help me solve it again.
error_log1.txt
企业微信截图_20241113105348

@chown1987
Copy link
Author

I increased the memory of clickhouse to 16GB, and then tried to query the keyword with double quotes, and it reported "invalid request". Can you help me take a look?

@chown1987
Copy link
Author

Is it true that qryn's loki service does not support the search of special symbols and double quotes? Please ask qryn's official technical staff to answer this question.

@akvlad
Copy link
Collaborator

akvlad commented Nov 13, 2024

@chown1987 thanks for the request. Apparently the requests like

`"`

seem failing indeed.

For now please try requesting in double quotes like:

{.....} |= "\"POST"

The case you have mentioned will be fixed in the next release.

@chown1987
Copy link
Author

I am looking forward to the release of the next version. When will the next version be released?

@akvlad akvlad mentioned this issue Nov 13, 2024
@akvlad akvlad closed this as completed in 42dd1e3 Nov 13, 2024
@akvlad
Copy link
Collaborator

akvlad commented Nov 14, 2024

@chown1987 version 3.2.37 should have it fixed. Please try.

Feel free to reopen if the bug is still present.

@chown1987
Copy link
Author

I redeployed qryn cloki with version 3.2.37 and found that it does not support retrieval with equal sign, as shown in the attachment.
企业微信截图_20241115103151
企业微信截图_20241115103220

@chown1987
Copy link
Author

Can you fix the bug that prevents searching with the equal sign?

@chown1987
Copy link
Author

I don't know which symbols are not supported for retrieval yet. Please try to support them all, because there are many scenarios and I am not sure which symbol will be used in which scenario.

@chown1987
Copy link
Author

At present, qryn version 3.2.37 has solved the search problem of double quotes and underscores.

@chown1987
Copy link
Author

Complex aggregate queries are not supported either.
企业微信截图_17316388282334

@chown1987
Copy link
Author

Can this kind of aggregate query statement be supported?
sum by(site) (count_over_time({job="hitpaw-online-log"} |~ "/app/matting"|"/app/ali-matting"|"/app/ali-app-matting"|"/api/v2/app-matting"|"/api/v2/.*/matting"|"/api/v3/app-matting"|"/api/v3/app-matting-crypt" | pattern <_>"from_site":"<site>"<_> | error=`` | line_format {{.site}} [$__range]))

@akvlad
Copy link
Collaborator

akvlad commented Nov 15, 2024

@chown1987 pattern will not be supported soon. Please replace it with regexp
__error__ may be omitted.

The rest is supported.

@chown1987
Copy link
Author

Is it possible to prioritize support for searching for equal signs?

@chown1987
Copy link
Author

@akvlad @shimaore @danjenkins
Hi qryn developers, could you please prioritize support for searching for equal signs and other commonly used symbols?

@lmangani
Copy link
Collaborator

@chown1987 it depends - you should be able to do what you want by using regexp. what have you tried?

@chown1987
Copy link
Author

@lmangani
Hi, qryn developer, can you prioritize support for searching equal signs and other common symbols? We are also using regular expressions for searching?

@chown1987
Copy link
Author

@lmangani @akvlad @shimaore @danjenkins Hello! Regarding the bug that qryn cannot retrieve special symbols such as equal signs and cannot support complex aggregation queries well, when can it be fixed?

@chown1987
Copy link
Author

@akvlad @lmangani @shimaore @danjenkins
Hello, qryn developer! When can you help fix the bug?

@danjenkins
Copy link
Contributor

Stop being tagging people

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants