You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need some help here.
I'm trying to set labels on loki output from multiple input like this:
[INPUT]
Name tail
Tag system.syslog
Path /var/log/syslog
Parser syslog-rfc5424
DB /var/log/flb_syslog.db
Mem_Buf_Limit 5MB
[INPUT]
Name tail
Tag system.audit
Path /var/log/audit/*.log
Parser syslog-rfc3164
DB /var/log/flb_audit.db
Mem_Buf_Limit 5MB
Skip_Long_Lines On
.
.
etc..
what I want to achieve is that label service_name can be selected in Grafana as label an returns the value regarding to INPUT Tag or any other flag, for example (Tag):
system.syslog
system.audit
[OUTPUT]
Name loki
Match *
Host loki
Port 3100
Labels environment=prod,hostname=${HOSTNAME},service_name=$Tag
I don't know if its even possible to map theese dinamically to labels
Need some help here.
I'm trying to set labels on loki output from multiple input like this:
.
.
etc..
what I want to achieve is that label service_name can be selected in Grafana as label an returns the value regarding to INPUT Tag or any other flag, for example (Tag):
I don't know if its even possible to map theese dinamically to labels
Slack Message
The text was updated successfully, but these errors were encountered: