Loki multi source logs configuration grafana-agent.yaml

Hello,

My problem is that the letsencrypt logs exist but do not go back to Grafana.

Did I make a configuration error ?

Thanks for your help :grinning:

loki:
configs:

  • clients:

    scrape_configs:

    • job_name: varlogs
      static_configs:

      • targets :
        • localhost
          labels:
          env: SRV_******
          job: varlogs
          path: /var/log/*log
    • job_name: letsencrypt
      static_configs:

      • targets :
        • localhost
          labels:
          env: SRV_******
          job: letsencrypt
          path: /var/log/letsencrypt/*log

    target_config:
    sync_period: 10s

Hi @david31b2 ,

it is hard to tell from that formatting if path: is under labels: or not. If it is under labels: then the name should be __path__:

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