Skip to content

[bitnami/fluent-bit] File not created in /fluent-bit/etc when using extraFiles #33161

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

Open
jpinxten opened this issue Apr 24, 2025 · 4 comments · May be fixed by #33261
Open

[bitnami/fluent-bit] File not created in /fluent-bit/etc when using extraFiles #33161

jpinxten opened this issue Apr 24, 2025 · 4 comments · May be fixed by #33261
Assignees
Labels
fluent-bit in-progress stale 15 days without activity tech-issues The user has a technical issue about an application

Comments

@jpinxten
Copy link

Name and Version

bitnami/fluent-bit 3.1.1

What architecture are you using?

amd64

What steps will reproduce the bug?

  1. Deploy the helmchart with extraFiles

Are you using any custom parameters or values?

daemonset:
  enabled: true

config:
  extraFiles:
    sshd_parser.lua: |
      function map_to_ecs(tag, timestamp, record)
        ...
      end

What is the expected behavior?

According to the Helm chart comment "This allows adding more files with arbitrary filenames to /fluent-bit/etc by providing key/value pairs." — I expect the file to be created under /fluent-bit/etc.

What do you see instead?

The file is not present in /fluent-bit/etc, also not under /opt/bitnami/fluent-bit/....

Additional information

I used the following command to look for the file: kubectl exec pod/<fluentbit-pod> -- ls <path>

I've tried searching both /fluent-bit/etc and /opt/bitnami/fluent-bit/... without success.

Btw, I'm actually trying to add a Lua script so I can use this in a filter.

@jpinxten jpinxten added the tech-issues The user has a technical issue about an application label Apr 24, 2025
@github-actions github-actions bot added the triage Triage is needed label Apr 24, 2025
@jpinxten jpinxten changed the title File not created in /fluent-bit/etc when using extraFiles [bitnami/fluent-bit] File not created in /fluent-bit/etc when using extraFiles Apr 24, 2025
@github-actions github-actions bot removed the triage Triage is needed label Apr 25, 2025
@github-actions github-actions bot assigned fmulero and unassigned javsalgar Apr 25, 2025
@Searge
Copy link

Searge commented Apr 28, 2025

Hello.

I have the same issue, despite what the comment to extraFiles says: "This allows adding more files with arbitary filenames to /fluent-bit/etc by providing key/value pairs."

Not only do I not see the specified folder in the root directory, but also inside the folder where all the configurations are stored. I have also tried to search for values from extraFiles with grep to no effect.

❯ k exec -it -n efk efk-fluent-bit-c9v7l -- bash
I have no name!@efk-fluent-bit-c9v7l:/opt/bitnami/fluent-bit$ ls -lha
total 36K
drwxr-xr-x 1 1001 1001 4.0K Apr 23 22:40 .
drwxrwxr-x 1 root root 4.0K Apr 23 22:40 ..
-rw-r--r-- 1 1001 1001 1.5K Apr 23 22:31 .spdx-fluent-bit.spdx
drwxr-xr-x 2 1001 1001 4.0K Apr 23 22:40 bin
drwxr-xr-x 1 1001 1001 4.0K Apr 28 12:07 conf
drwxr-xr-x 2 1001 1001 4.0K Apr 23 22:40 licenses
drwxr-xr-x 2 1001 1001 4.0K Apr 23 22:31 log
I have no name!@efk-fluent-bit-c9v7l:/opt/bitnami/fluent-bit$ ls -lh /
total 56K
lrwxrwxrwx   1 root root    7 Apr 12 15:16 bin -> usr/bin
drwxr-xr-x   2 root root 4.0K Mar  7 17:30 boot
drwxr-xr-x   5 root root  360 Apr 28 12:07 dev
drwxr-xr-x   1 root root 4.0K Apr 28 12:07 etc
drwxr-xr-x   2 root root 4.0K Mar  7 17:30 home
lrwxrwxrwx   1 root root    7 Apr 12 15:16 lib -> usr/lib
lrwxrwxrwx   1 root root    9 Apr 12 15:16 lib64 -> usr/lib64
drwxr-xr-x   2 root root 4.0K Apr 12 15:16 media
drwxr-xr-x   2 root root 4.0K Apr 12 15:16 mnt
drwxr-xr-x   1 root root 4.0K Apr 23 22:40 opt
dr-xr-xr-x 463 root root    0 Apr 28 12:07 proc
drwx------   2 root root 4.0K Apr 12 15:16 root
drwxr-xr-x   1 root root 4.0K Apr 28 12:07 run
lrwxrwxrwx   1 root root    8 Apr 12 15:16 sbin -> usr/sbin
drwxr-xr-x   2 root root 4.0K Apr 12 15:16 srv
dr-xr-xr-x  13 root root    0 Apr 28 12:07 sys
drwxrwsrwx   2 root root 4.0K Apr 28 12:07 tmp
drwxr-xr-x  12 root root 4.0K Apr 23 22:40 usr
drwxr-xr-x   1 root root 4.0K Apr 23 22:40 var

I'm using most resent version: 21.6.2

@jpinxten jpinxten linked a pull request Apr 30, 2025 that will close this issue
4 tasks
Copy link

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label May 14, 2025
@fmulero fmulero removed the stale 15 days without activity label May 14, 2025
@fmulero
Copy link
Collaborator

fmulero commented May 14, 2025

Thanks a lot @jpinxten for your contribution! I left some comments in your PR #33261

Copy link

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fluent-bit in-progress stale 15 days without activity tech-issues The user has a technical issue about an application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants