configure Promtail/loki to collect other logs files from the container running in a kubernetes pod using helm chart

Viewed 536

I have installed the promtail/loki using the helm chart in my Kubernetes cluster by following the below link

https://grafana.com/docs/loki/latest/installation/helm/

But By default, it collects only container logs. I want to configure my promtail in a way that it will be able to collect the application log files as well from the container.

Example : I have ngnix pod which has 2 sets of log files like access.log and error.log, I want to stream these two files to the loki.

0 Answers
Related