Skip to content

Instantly share code, notes, and snippets.

@jorgevisentini
Created December 28, 2024 15:04
Show Gist options
  • Select an option

  • Save jorgevisentini/b5d6df75784d8da05db1c868cb1a2d82 to your computer and use it in GitHub Desktop.

Select an option

Save jorgevisentini/b5d6df75784d8da05db1c868cb1a2d82 to your computer and use it in GitHub Desktop.
promtail.conf
- job_name: syslog
syslog:
listen_address: 0.0.0.0:1514
label_structured_data: yes
labels:
job: syslog
relabel_configs:
- source_labels: [__syslog_message_hostname]
target_label: from_hostname
- source_labels: [__syslog_message_severity]
target_label: level
- source_labels: [__syslog_message_app_name]
target_label: application
- source_labels: [__syslog_message_facility]
target_label: facility
- source_labels: [__syslog_connection_ip_address]
target_label: ip_address
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment