-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
need escape character in the mesage for output.loki #15274
Comments
Thanks - do you have a link to a regex of characters that are valid or invalid? I'm sure there is more than just a period. |
using the file plugin and with the message
but im not sure whether these are exactly the message that produces the problem |
i think the log content doesnt matter. It is reproducible through
then press an enter to trigger a log entry in podman; with the followings in telegraf.conf:
where im running with podman version 3.4.4 notably, similar configuration for [[inputs.docker]] works with podman.sock |
In 30mins from this message there will be artifacts available as a comment in #15277, please download and try one of those artifacts, and be sure to add
What I am after is understanding two things:
Looking at your previous messages that you did provide it appears to be due to these tag keys:
If I update those tag keys to remove the decimals all the messages said sucessfully:
Looking at the docs around label naming there does appear to be a regex:
Namely we can start with a letter, underscore, or colon. Then after that we can have numbers as well. I've put up #15277 with a new option to do this sanitization for you, but you need to enable it with |
it works like charm, thanks |
telegraf/plugins/outputs/loki/loki.go
Line 133 in 10c15ce
not sure if the problem happens exactly here, but when i try to bridge input.docker_log to output.loki, it seems loki plugin does not escape . and cause the error:
The text was updated successfully, but these errors were encountered: