Skip to content

Container name not displaying in logs #269

Description

@Erasure5959

Hello @Polliog,

Thank you for your work on this project, I am enjoying it so far and like what I see.

I am facing some issues with the Docker logs. Perhaps I have misunderstood the documentation, but my interpretation of the Fluent Bit config was that the Docker container name (not ID) would show up in the GUI. Instead, I see the ID:

Image

From the documentation, the filter config:

[FILTER]
  Name                lua
  Match               docker.*
  script              /fluent-bit/etc/extract_container_id.lua
  call                extract_container_id

[FILTER]
  Name                modify
  Match               docker.*
  Add                 level info
  Rename              log message
  Copy                container_name service

However, nowhere do I see container_name being extracted or mapped from anything else.

Have I misunderstood or done something wrong? Getting logs from containers is helpful, but the utility is lessened by having IDs rather than container or service names.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationgood first issueGood for newcomers

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions