Questions tagged [promtail]

Promtail is an agent which ships the contents of local logs to a private Grafana Loki instance or Grafana Cloud. Use with grafana-loki tag.

See documentation

145 questions
0
votes
1 answer

Issue using Docker Container logs to grafana using Loki-Promtail or Log Driver

I have an issue with promtail and Loki, in my server I almost have 10 docker containers which are running on Prod and Dev Environments. As I am new to Grafana I wanted to scrape these 10 docker container logs and see it in Grafana using Loki…
tpc
  • 1
  • 1
0
votes
1 answer

Get a number from JSON by Promtail

I use Promtail+Loki to collect my logs. Input logs are JSON strings that look like this: { "severity":"error", "msg":"very bad error", "duration":20 } How can I parse this string by Promtail to get duration as numeric in Loki? My goal is to be…
vovast
  • 3
  • 2
0
votes
1 answer

How to extract log level using prom tail scrape_configs

I have multiple pods in cluster and Promtail is configured as DaemonSet to pump logs to Loki. but not sure how to create extra label for log level from specific pod logs to query in grafana. Logs from pods: [2021-12-14 11:11:11] INFO…
Raman
  • 35
  • 1
  • 7
0
votes
2 answers

Promtail: How to remove timestamps from filenames?

I have a simple problem: My logfiles have timestamps in their name, i.e.: /var/log/html/access-2021-11-27.log /var/log/html/access-2021-11-28.log /var/log/html/access-2021-11-29.log Promtail is scraping this but does not "see" that…
TorstenS
  • 127
  • 10
0
votes
0 answers

How can docker-compose access outside window files?

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: …
Navneet Garg
  • 1,364
  • 12
  • 29
0
votes
1 answer

AWS cross account Loki promtail setup in EKS

Here is my setup. I have 2 AWS accounts. Applications account Monitoring account Application account has EKS + Istio + Application related microservices + promtail agents. Monitoring account has centralized logging system within EKS + Istio +…
0
votes
2 answers

How to make promtail read new log written to log file which was read already?

I have a very simple test setup. Data flow is as follows: sample.log -> Promtail -> Loki -> Grafana I am using this log file from microsoft: sample log file download link I have promtail config as follows: server: http_listen_port: 9080 …
Jeeva Bharathi
  • 514
  • 4
  • 22
0
votes
1 answer

How do I apply two labels with the same value from regular expression

When using Promtail for log scraping, is there a way to configure two labels with the same value based on a single regular expression? So given something like this: - match: selector: '{app="my-app"}' stages: - regex: …
Thomas Lötzer
  • 24,832
  • 16
  • 69
  • 55
0
votes
1 answer

How to parse nested json in Promtail

I am having the following log which is in nested…
Nidhin Kumar
  • 3,278
  • 9
  • 40
  • 72
1 2 3
9
10