Skip to content

Is there a way to get the chunk ID at the custom GO output plugin level ?  #67

@Nicusor97

Description

@Nicusor97

I'm looking for a way to get the chunk ID (which I suppose is unique per chunk) at a custom GO output plugin level.
I'm using Fluent-Bit with an Tail input plugin (default one) and a GO custom output plugin that is used to forward the data to specific output.

Our infrastructure is based on retries and we adding some audits logs where we log each line from a chunk just to be collected by a log agent and pushed to Kibana. Since the same chunk is retried multiple times, I want to somehow get the unique ID of that specific chunk, store it in memory and at the next validations make sure the same ID is used in logs so we can filter by that specific space ID.

Long story short, these are my questions:

  1. Is there a way to get the chunk ID at a custom GO output plugin level considering I'm using an TAIL input plugin ?
  2. Is there is no way to get the chunk ID, do you have any suggestion for how to map the chunk to something unique so I will be aware of the chunk's unicity when I log the action (retry, fail, sent)?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions