@type forward
port 24224
bind 0.0.0.0
@type parser
@type json
json_parser json
replace_invalid_sequence true
emit_invalid_record_to_error false
key_name log
reserve_data true
remove_key_name_field true
@type parser
format /^.*m(?[^ ]*) (?[^ ]*) \- \- \[(?
@type record_transformer
remove_keys "source,t"
@type copy
@type stdout
output_type json
@type loki
url "http://loki:3100"
extra_labels {"app":"grafana"}
label_keys "container_name,container_id,logger"
flush_interval 10s
flush_at_shutdown true
buffer_chunk_limit 1m
@type record_transformer
lvl "info"
@type copy
@type stdout
output_type json
@type loki
url "http://loki:3100"
extra_labels {"app":"nginx"}
label_keys "container_name,container_id"
flush_interval 10s
flush_at_shutdown true
buffer_chunk_limit 1m