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

Keep original timestmap #4

Open
Globegitter opened this issue May 30, 2017 · 0 comments · May be fixed by #5
Open

Keep original timestmap #4

Globegitter opened this issue May 30, 2017 · 0 comments · May be fixed by #5

Comments

@Globegitter
Copy link

Globegitter commented May 30, 2017

Hi,
I am using this plugin in combination with https://github.com/ento/fluent-plugin-out-http to send logs from supervisor (which users this script: https://github.com/Globegitter/supervisor2fluentd/blob/nanosecond-precision/supervisor2fluentd.py). This python script emits an event to fluent with tag and timestamp which I then want to forward on. However I have notice that all the logs coming in with the same batch have the same timestamp (well, different on subsecond level), even though in reality they are logged out at different times. If I reduce the flush_interval from e.g. 10s to 1s I get the accurate timestamps.

Is this intended with this plugin and is there some way to preserve the original timestamp I am emitting?

I am using buffer_type file btw, not sure if it makes any difference,

@jlacoline jlacoline linked a pull request Jul 10, 2018 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant