Unable to Find all logs on Grafana Loki

Hello,

I recently setup my log monitoring instance and from my setup, about 11/12 log locations were selected. But when i check my loki dahsboard, i can only see 2 jobs and few directories listed compared to what i configured.

here is my promtail config file:

server:
  http_listen_port: 9080
  grpc_listen_port: 0

positions:
  filename: /tmp/positions.yaml

clients:
  - url: http://localhost:3100/loki/api/v1/push

scrape_configs:
- job_name: system
  static_configs:
  - targets:
      - localhost
    labels:
      job: cronlogs
      __path__: /var/log/cron

- job_name: system
  static_configs:
  - targets:
      - localhost
    labels:
      job: auditlog
      __path__: /var/log/audit/audit.log

- job_name: system
  static_configs:
  - targets:
      - localhost
    labels:
      job: dnflog
      __path__: /var/log/dnf.log
- job_name: system
  static_configs:
  - targets:
      - localhost
    labels:
      job: kdumplog
      __path__: /var/log/kdump.log
- job_name: system
  static_configs:
  - targets:
      - localhost
    labels:
      job: maillog
      __path__: /var/log/maillog
- job_name: system
  static_configs:
  - targets:
      - localhost
    labels:
      job: mysqllog
      __path__: /var/log/mysql/mysqld.log
- job_name: system
  static_configs:
  - targets:
      - localhost
    labels:
      job: nginxlog
      __path__: /var/log/nginx/*.log
- job_name: system
  static_configs:
  - targets:
      - localhost
    labels:
      job: phpfpmlog
      __path__: /var/log/php-fpm/*.log
- job_name: system
  static_configs:
  - targets:
      - localhost
    labels:
      job: securelog
      __path__: /var/log/secure
- job_name: system
  static_configs:
  - targets:
      - localhost
    labels:
      job: sssdlog
      __path__: /var/log/sssd/*.log
- job_name: system
  static_configs:
  - targets:
      - localhost
    labels:
      job: zabbixlog
      __path__: /var/log/zabbix/*.log

Jobs visible From loki dashboard

image

logfiles Visible from loki

image

Kindly assist with pointers on what I’m doing wrongly.

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