# Example for storage.type filesystem # Example for default storage.type memory [SERVICE] Grace 30 storage.path /var/log/flb-storage # Total Max Memory Usage <= 2 * # of input definitions * storage.max_chunks_up * 2 MB per chunk # 2 MB internal chunk size is not configurable # So container memory reservation should be AT LEAST 100 MB storage.max_chunks_up 25 # Recommended: enable metrics interface for plugins and storage # https://github.com/aws-samples/amazon-ecs-firelens-examples/tree/mainline/examples/fluent-bit/send-fb-internal-metrics-to-cw HTTP_Server On HTTP_Listen 0.0.0.0 HTTP_PORT 2020 # enable storage metrics storage.metrics On [INPUT] Name tcp Listen 0.0.0.0 Port 5170 Chunk_Size 32 # this number of kilobytes is the max size of single log message that can be accepted Buffer_Size 64 Format none Tag tcp-logs # filesystem buffer for logs collected by this input storage.type filesystem # pause the input when the [SERVICE] storage.max_chunks_up memory limit is hit storage.pause_on_chunks_overlimit Off # default/recommended value [OUTPUT] Name cloudwatch_logs Match * region us-east-1 log_group_name firelens-tutorial log_stream_name /logs/${HOSTNAME} auto_create_group true retry_limit 2 # limit the filesystem storage that this output can use storage.total_limit_size 1G