Question - is there a cleaner way to set the sourc...
# fluent-bit
b
Question - is there a cleaner way to set the sourcetype to whatever the tag is?
Copy code
[INPUT]
    Name              tail
    Tag               nginxplus
    Path              /var/lib/docker/containers/*/*.log
    Parser            docker
    Refresh_Interval  10
    Skip_Long_Lines   On
    Ignore_Older      12h
    Exclude_Path      /var/lib/docker/containers/*/*-json.log

[INPUT]
    Name              tail
    Tag               powergslb
    Path              /var/lib/docker/containers/*/*.log
    Parser            docker
    Refresh_Interval  10
    Skip_Long_Lines   On
    Ignore_Older      12h

[INPUT]
    Name                tail
    Tag                 technitium
    Path                /mnt/logs/*.log
    Refresh_Interval    10
    Skip_Long_Lines     On
    Ignore_Older        48h

[FILTER]
    Name          modify
    Match         nginxplus
    Set           sourcetype nginxplus

[FILTER]
    Name          modify
    Match         powergslb
    Set           sourcetype powergslb

[FILTER]
    Name          modify
    Match         powergslb
    Set           sourcetype powergslb
p
Lua? You can match any tag and use the value
🙌 1
Or a simple processor, not filter, per input that does it