diff --git a/sidecar/Dockerfile b/sidecar/Dockerfile index 3b331d3a..c2615c43 100644 --- a/sidecar/Dockerfile +++ b/sidecar/Dockerfile @@ -38,6 +38,7 @@ COPY --from=go-builder \ /tailing-sidecar/lib/ COPY conf/fluent-bit.conf \ + conf/inputs.conf \ conf/plugins.conf \ /fluent-bit/etc/ diff --git a/sidecar/conf/fluent-bit.conf b/sidecar/conf/fluent-bit.conf index a473e1ae..7bdc1376 100644 --- a/sidecar/conf/fluent-bit.conf +++ b/sidecar/conf/fluent-bit.conf @@ -81,15 +81,7 @@ # # storage.backlog.mem_limit 5M -[INPUT] - name tail - path ${PATH_TO_TAIL} - Read_from_Head On - Refresh_Interval 1 - Rotate_Wait 60 - Mem_Buf_Limit 5MB - DB /tailing-sidecar/var/fluent-bit-state.db - DB.Sync Normal +@INCLUDE inputs.conf [OUTPUT] name gstdout diff --git a/sidecar/conf/inputs.conf b/sidecar/conf/inputs.conf new file mode 100644 index 00000000..f672f39e --- /dev/null +++ b/sidecar/conf/inputs.conf @@ -0,0 +1,9 @@ +[INPUT] + name tail + path ${PATH_TO_TAIL} + Read_from_Head On + Refresh_Interval 1 + Rotate_Wait 60 + Mem_Buf_Limit 5MB + DB /tailing-sidecar/var/fluent-bit-state.db + DB.Sync Normal