-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[docker_log] stack traces are not properly retrieved #6652
Comments
Can you temporarily add a file output to log the line protocol produced when the stacktrace is logged?: [[outputs.file]]
files = ["/tmp/telegraf"] Also let us know which output you are using. |
I've setup the temporary file output, i'll need a bit more time to skim through it and post back here. I'm using |
I managed to generate some exceptions, and capture the logs via telegraf. Here is the original log file for reference: https://gist.github.com/9b16dfdf9856a35a8580eb8f9a2702ca Here is the output of telegraf: https://gist.github.com/1c6e122bad41a2dce27a7f670f7e077a Let me know if i can provide anything more. |
Would you be able test out a build of #6663 to verify the fix? The easiest way to get this working is to mount the telegraf binary on top of the one in your current container:
|
I confirm the problem is fixed using the provided binary 👍 I had a similar issue with another container, and it's fixed also. \o/ |
Relevant telegraf.conf:
System info:
Telegraf 1.12.5, running inside Docker
Host Ubuntu 19.04
Steps to reproduce:
Expected behavior:
docker_log.message
should contain the full log, with all lines.Actual behavior:
docker_log.message
contain a single line:In addition a few lines after the concerned log file are missing.
Additional info:
The text was updated successfully, but these errors were encountered: