Loki Promtail - Facetting Labels Fails

Hi,

I’m receiving a “Facetting of labels” failure in grafana when searching loki. I can see the labels present in loki, but this error is show. Here is my promtail yaml. Any thoughts?

server:
http_listen_port: 10005
grpc_listen_port: 0

positions:
filename: ./positions.yaml

clients:

scrape_configs:

  • job_name: metadata-service

    pipeline_stages:

    • match:
      selector: ‘{job=“metadata-service”}’
      stages:
      - regex:
      # 2021-08-19 15:48:13.311 INFO main e17146d048798882 e17146d048798882
      # d{yyyy-MM-dd HH:mm:ss.SSS} %level %t %X{correlation.id} %X{context.id} - %msg%n
      # ‘^(?P\d{4}-\d{2}-\d{2}\s\d{1,2}:\d{2}:\d{2}.\d{3})\s+(?P[A-Z]{4,5})\s(?P\d)\s—\s[\s*(?P.)]\s(?P.)\s+:\s(?P.)\s-\s(?P.)$’
      expression: ‘^(?P\d{4}-\d{2}-\d{2}\s\d{1,2}:\d{2}:\d{2}.\d{3})\s(?P[A-Z]{4,5})\s[(?P<trace_id>.)]\s:\s(?P.)$’
      - labels:
      timestamp:
      level:
      trace_id:
      message:
      - timestamp:
      format: ‘2006-01-02 15:04:05’
      source: timestamp
    • multiline:
      firstline: ‘^\d{4}-\d{2}-\d{2}\s\d{1,2}:\d{2}:\d{2}.\d{3}’
      max_wait_time: 3s

    static_configs:

    • targets:
      • localhost
        labels:
        job: metadata-service
        path: “C:/Logs/microservices/metadata-service-9130/metadata-app.log”

Same problem here, which prevents me from seeing my logs

we are new to loki and trying to implement it in aws cluster expecting to get logs from all apps running in different namespaces. But all namespaces/apps are not showing up in Grafana.

I am using the loki and promtail helm files from below link.

Any suggestions?

This topic was automatically closed after 365 days. New replies are no longer allowed.