34 lines
637 B
YAML
34 lines
637 B
YAML
server:
|
|
http_listen_port: 9080
|
|
grpc_listen_port: 0
|
|
|
|
positions:
|
|
filename: /tmp/positions.yaml
|
|
|
|
clients:
|
|
- url: http://loki:3100/loki/api/v1/push
|
|
|
|
scrape_configs:
|
|
- job_name: system
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: varlogs
|
|
__path__: /var/log/*log
|
|
|
|
- job_name: generated-logs
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: generated-logs
|
|
__path__: /tmp/loki-gen-log/generated-logs.txt
|
|
pipeline_stages:
|
|
- json:
|
|
expressions:
|
|
http_method: 'method'
|
|
http_status: "status"
|
|
- labels:
|
|
http_method:
|
|
http_status: |