promtail’s onfig:
server:
http_listen_port: 9080
grpc_listen_port: 0
positions:
filename: /tmp/positions.yaml
client:
url: http://127.0.0.1:3100/api/prom/push
scrape_configs:
- job_name: system
static_configs:
- targets:
- localhost
labels:
job: web_app
__path__: D:/Projects/.../logs/web_app.log
promtail’s log
level=debug ts=2021-01-13T03:55:25.772773Z caller=filetargetmanager.go:207 msg="new target" labels="{__address__=\"localhost\"}"
level=info ts=2021-01-13T03:55:25.7729264Z caller=filetargetmanager.go:261 msg="Adding target" key="{job=\"web_app\"}"
level=debug ts=2021-01-13T03:49:56.301695Z caller=filetarget.go:216 msg="no files matched requested path, nothing will be tailed" path=D
:/Projects/.../logs/web_app.log
Folder with file and logs are present.
Loki is working as docker container and ports are mapped to the host
(I changed slashes in the other direction - the result is the same)
The same is on Mac with absolute path
Where is the problem?