Skip to content

Keep original timestmap #4

Description

@Globegitter

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,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions