Promtail

Promtail is a log aggregation project to compliment Prometheus and part of the Grafana project.


Installation


Configuration

The basic configuration is:

server:
  http_listen_address = 0.0.0.0
  http_listen_port: 9080

positions:
  filename: /tmp/positions.yaml

clients:
  -url: http://loki:3100/loki/api/v1/push

scrape_configs:
  <something>

To scrape Syslogd, try:

scrape_configs:
  - job_name: syslog
    syslog:
      listen_address: 0.0.0.0:601
      idle_timeout: 60s
      label_structured_data: yes
      labels:
        job: "syslog"
  relabel_configs:
    - source_labels: ["__syslog_message_hostname"]
      target_label: "host"


See also

Promtail Documentation


CategoryRicottone

Promtail (last edited 2023-04-08 13:52:33 by DominicRicottone)