Skip to content

Commit

Permalink
fix_promtail
Browse files Browse the repository at this point in the history
  • Loading branch information
gsanchietti committed Mar 1, 2024
1 parent 2f99a7a commit 7594a28
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions imageroot/etc/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,21 @@ scrape_configs:
- job_name: syslog
syslog:
listen_address: ${PROMTAIL_ADDRESS}:${PROMTAIL_PORT}
label_structured_data: yes
idle_timeout: 1800
labels:
job: "syslog"
controller_name: ${OVPN_CN}
relabel_configs:
- source_labels: [__syslog_message_hostname]
target_label: 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_hostname]
target_label: connection_hostname
- source_labels: ['__syslog_message_hostname']
target_label: 'host'

0 comments on commit 7594a28

Please sign in to comment.