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
Malformed output when log contains an equals sign #2834
Comments
Hmm that does seem like a tricky bug. Dozzle supports https://grafana.com/docs/loki/latest/send-data/promtail/stages/logfmt/ but the parser seems pretty relaxed. I am not sure how to fix it. |
Looks like I do |
Would it be reasonable to check if the message matches regex something like
But none of these:
|
Thanks for the quick reply! If you can't find a good way to improve the regex, another option could be adding a new environment variable that disables all parsing and prints all messages as-is. Just tossing out an idea. 🙂 |
Not worth it. Makes testing and configuration harder. Let me play around with regex. |
This should be fixed with #2835. Can you try it with |
That appears to have fixed my problem. Just to be sure, I tested out some different variants to see what the output looks like: print("Failed to run somecommand with somevariable = 1")
print("Failed to run somecommand with somevariable=1")
print("somevariable=1")
print("somevariable = 1")
print("somevariable=1 another=2")
print("somevariable = 1 another = 2") My original test case is now correct, and |
|
Describe the bug
Whenever a container's console output contains
a = b
, Dozzle seems to misinterpret the line as a series of variables and ends up malforming the entire line.To Reproduce
Expected behavior
I expected the message to be printed as-is:
Failed to run somecommand with somevariable = 1
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: