I am using docker-compose setup of loki on my windows system and I want to change promtial configuration to access my windows log files. But it seams that docker not able to access outside path.
- job_name: test
static_configs:
- targets:
- test
labels:
job: test
__path__: "F:/project/test/logs/*.log"
Answer:
promtail:
image: grafana/promtail:2.4.0
volumes:
- F:/project/test/src/logs:/test/logs
command: -config.file=/etc/promtail/config.yml
networks:
- loki