I wanted to upload local .logs to grafana through loki using promtail. My promtail shows that the files are in, but in Grafana, it is not shown.
I've tried configurating the loki and promtail config files. There hasn't been much results.
I wanted to upload local .logs to grafana through loki using promtail. My promtail shows that the files are in, but in Grafana, it is not shown.
I've tried configurating the loki and promtail config files. There hasn't been much results.
Go to your promtail-local-config.yaml
Change the __path__
to the local path of your logs
Execute this command:
./promtail-linux-amd64 -client.url http://localhost:3100/loki/api/v1/push -config.file=promtail-local-config.yaml -positions.file=/tmp/positions.yaml