FluentBit sends logs to Grafana Loki but stops sending logs after 6 hours using Amazon Elastic Container Cluster (ECS)

Here are the logs am getting

||2023-11-01T09:07:56.164+01:00|[2023/11/01 08:07:56] [ info] [output:null:null.0] worker #0 started|
| --- | --- | --- |
||2023-11-01T09:07:56.164+01:00|[2023/11/01 08:07:56] [ info] [sp] stream processor started|
||2023-11-01T15:39:27.541+01:00|[2023/11/01 14:39:27] [engine] caught signal (SIGTERM)|
||2023-11-01T15:39:27.541+01:00|[2023/11/01 14:39:27] [ info] [input] pausing forward.1|
||2023-11-01T15:39:27.541+01:00|[2023/11/01 14:39:27] [ info] [input] pausing forward.2|
||2023-11-01T15:39:27.541+01:00|[2023/11/01 14:39:27] [ warn] [engine] service will shutdown in max 5 seconds|
||2023-11-01T15:39:28.134+01:00|[2023/11/01 14:39:28] [ info] [engine] service has stopped (0 pending tasks)|
||2023-11-01T15:39:28.134+01:00|[2023/11/01 14:39:28] [ info] [output:null:null.0] thread worker #0 stopping...|
||2023-11-01T15:39:28.134+01:00|[2023/11/01 14:39:28] [ info] [output:null:null.0] thread worker #0 stopped|

And below is my conf file

[SERVICE]
    Parsers_File /fluent-bit/etc/parsers.conf
    Flush        1
    Grace        30

[INPUT]
    name              tail
    path              /var/log/syslog

[FILTER]
    Name         parser
    Match        *
    Key_Name     log
    Parser       json
    Reserve_Data True

[OUTPUT]
    Name        loki
    Match       *
    Host        ${LOKI_HOST}
    port        443
    tls         on
    tls.verify  on
    http_user   ${LOKI_USER}
    http_passwd ${LOKI_PASS}
    labels      job=fluentbit
    label_keys  $ecs_cluster, $ecs_task_definition, $container_id
    line_format key_value
    remove_keys ecs_task_arn, container_name

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.