github.com/yankunsam/loki/v2@v2.6.3-0.20220817130409-389df5235c27/production/docker/config/promtail.yaml (about) 1 server: 2 http_listen_port: 9080 3 grpc_listen_port: 0 4 log_level: "info" 5 6 positions: 7 filename: /tmp/positions.yaml 8 9 clients: 10 - url: http://loki-gateway:80/loki/api/v1/push 11 tenant_id: docker 12 13 scrape_configs: 14 - job_name: generated-logs 15 static_configs: 16 - targets: 17 - localhost 18 labels: 19 job: generated-logs 20 __path__: /var/log/generated-logs.txt 21 pipeline_stages: 22 - json: 23 expressions: 24 http_method: 'method' 25 http_status: "status" 26 - labels: 27 http_method: 28 http_status: