Hello,
Im trying to visualize logs from text files with Grafana. The im trying is to run promtail via Docker.
This is the command i want to edit:
docker run --name promtail --volume “$PWD/promtail:/etc/promtail” --volume “/var/log:/var/log” grafana/promtail:master -config.file=/etc/promtail/config.yaml
How to edit this command on Windows system?
My paths are:
Promtail-config.yaml - C:\promtail\promtail-config.yaml
Text files with logs i want to read - C:\var\log*.txt (if i understand correctly, that star is supposed to do that it will read all text files in that file)
positions.yaml - C:\tmp\positions.yaml
In my promtail-config.yaml file is written this:
server:
http_listen_port: 0
grpc_listen_port: 0
positions:
filename: C:\tmp\positions.yaml
client:
url: https://18322:eyJrIjoiYjViMWQ2NjBmN2I1NDVlYjcwZWI4ZWQwYjdiZDlkMjA5NzhkYWQzNyIsIm4iOiJzZ3Nmc2ciLCJpZCI6NDYwODg2fQ==@logs-prod-us-central1.grafana.net/api/prom/push
scrape_configs:
job_name: system
static_configs:
targets:
localhost
labels:
job: varlogs
path: C:\var\log*.txt
If anyone got the answer, thanks in advance.
With best reagrds,
Oto Weinlich