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
1
vote
0 answers

Switch on/off Promtail which runs in docker container in k8s pod

Current monitoring of log-files of an java application running on wildfly consist of Loki, Promtail and Graphana. The java application and Promtail run in separate containers in one k8s pod with shared volume and network. Whereas one Pomtail…
1
vote
1 answer

Parsing GCP logs with Loki

I'm sending GCP logs to loki and I would like to parse out the jsonPayload as labels. When I run a query, I know I can do query| json but is there a way to do this via the yaml config? The jsonPayload can have different fields for different logs so…
user3531263er
  • 423
  • 1
  • 4
  • 20
1
vote
1 answer

Promtail to create new label based on the selector

I’m new to Loki and trying to deploy it on our non-prod cluster. I’m able to push the logs and visualize the logs in Grafana. I have a requirement where I need to get the part of the logs(containing a work) and make it available under a new…
Amjad Hussain Syed
  • 994
  • 2
  • 11
  • 23
1
vote
2 answers

Promtail Targets Failed

What Grafana version and what operating system are you using? Promtail:latest & Loki:2.2.0, Kubernetes (GitVersion:"v1.18.8") and Helm (Version:"v3.6.2") What are you trying to achieve? To can scrape my active targets and push them to…
SRK
  • 11
  • 1
  • 3
0
votes
1 answer

Issue with collecting logs from asp-net services in containers using containers with grafana and loki

Im trying to collect logs, that generate my services in docker containers using grafana/loki. I use Serilog in my asp.net application for sending logs to loki, which is selected as a data source for displaying in grafana. My application in debug…
0
votes
2 answers

How to connect Grafana with Loki over HTTPS?

I am trying connecting Grafana with Loki over HTTPS. I have the certificates for both Grafana and Loki. They are signed by my organization, and they have provided me with the CA.cer and file.pfx(bundle containing private key, public key, certificate…
0
votes
1 answer

masking sensitive data from logs using promtail loki grafana stack in kubernetes using helm

i was trying to mask sensitive datas in my logs like personal information from my application log using promtail , but i couldnt mask it . im using promtail loki grafana as my monitoring stack . my application is deployed in gke . my config…
0
votes
1 answer

Why would I need Promtail when Loki4j Logback to Loki gets the data too?

I am new to developing a Kotlin application and would like to have a tool to centrally manage logs. Since I'm already using Grafana + Prometheus for monitoring, I decided to use Loki as a data source, and use loki-logback-appender in the Kotlin…
Michal Špondr
  • 1,337
  • 2
  • 21
  • 44
0
votes
0 answers

Can't Retrieve Logs by Tenant ID: Lambda Promtail Logs Loki/Grafana

I am attempting to setup Lambda Promtail to send cloudtrail logs to Loki (hosted in EKS). It appears from Lambda metrics that everything appears to be correct and I am not getting any errors on the client (lambda) side. I am using the recommended…
0
votes
1 answer

Drop log lines matching healthchecks from logs using promtail and loki

I am trying to drop log lines from haproxy.logs using promtail that are matching the healthchecks so that I would only keep valid requests. The log lines that I am trying to drop looks like these: Aug 16 10:37:55 cat-nv-common-03 haproxy[1137]:…
zozo6015
  • 557
  • 2
  • 11
  • 27
0
votes
1 answer

Loki gives error table index_2797 does not exist when using Cassandra as store

I'm using Cassandra as the data and index store for Grafana Loki, following the guidelines in the Grafana Documentation. However, I'm encountering an error stating that the table 'index_XXXX' does not exist. Is there a configuration step that I…
lahirumw
  • 153
  • 1
  • 1
  • 9
0
votes
0 answers

long line logs were divided over 2 records in loki

I installed loki with promtail in EKS cluster with using helm charts. But, long line logs were divided over 2 records. I tried modifying limits_config and adjusted max_chunk_size, etc. But, It still causes. Is there any way to prevent logs will not…
0
votes
0 answers

Rsyslog not forwarding log messages to Loki (Grafana)

I have set up a Loki server (part of Grafana's monitoring stack) to aggregate and query log data. However, I am experiencing issues with log forwarding from rsyslog to Loki. It seems that the log messages are not being received by Loki, and I'm…
0
votes
1 answer

What is the best way to store logs for future data reports (Ex: each year) using a Loki stack?

I am currently using a loki stack (Grafana-Loki-Promtail) for logs analysis. But I need a solution to store the logs for multiple years (can I do this on Loki? I cannot use a cloud solution) to do reports. Currently my loki container stores the data…
Etienne
  • 1
  • 2
0
votes
0 answers

Promtail Loki logs to Elasticsearch

I have an environment with both windows VMs and a k8s cluster. the only connectivity available in the environment is from the k8s cluster to the windows VMs and not the opposite. Now, I need to get the logs from my Windows VMs into the k8s cluster's…