grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
22.73k stars 3.31k forks source link

Issue with regex pattern in scrape config for Grafana Loki and Promtail configuration deployed on K8S #13292

Open RushikeshChanakhekar opened 1 week ago

RushikeshChanakhekar commented 1 week ago

Hi Team,

I am trying to add regex pattern to filter log and add labels by using Regex pattern in Scrape config of loki and promtail config as mentioned below

promtail: enabled: true config: serverPort: 3101 clients:

"level=warn ts=2024-06-24T07:31:20.23667182Z caller=logging.go:123 msg="GET /ready (500) 156.257µs Response: \"Not ready: Unable to find any logs to tail. Please verify permissions, volumes, scrape_config, etc.\n\" ws: false; Accept: /; Connection: close; User-Agent: kube-probe/1.26;

However I am getting all the logs if I do not apply any regex pattern.

JStickler commented 1 week ago

Questions have a better chance of being answered if you ask them on the community forums.