Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for reading the systemd journal is not compiled into this build of promtail #16220

Closed
mindrunner opened this issue Feb 12, 2025 · 6 comments · Fixed by #16271
Closed

Comments

@mindrunner
Copy link

Describe the bug
Using grafana/promtail latest, I see this error message when I try to use systemd logs.

level=warn ts=2025-02-12T16:09:46.125808224Z caller=journaltargetmanager.go:29 msg="WARNING!!! Journal target was configured but support for reading the systemd journal is not compiled into this build of promtail!"

To Reproduce
Steps to reproduce the behavior:

  1. Started Loki latest
  2. Started Promtail latest to tail 'systemd' logs

Expected behavior
journalctl systemd logs are being sent

Environment:

  • Infrastructure: docker-compose
  • Deployment tool: docker-compose

Screenshots, Promtail config, or terminal output

server:
  http_listen_port: 9080
  grpc_listen_port: 0
  log_level: debug

positions:
  filename: /tmp/positions.yaml

clients:
  - url: http://loki:3000/loki/api/v1/push

scrape_configs:
  - job_name: journal
    journal:
      json: false
      max_age: '12h'
      path: /run/log/journal
      labels:
        job: systemd-journal
    relabel_configs:
      - source_labels: ['__journal__systemd_unit']
        regex: 'agave.service'
        action: keep
      - source_labels: ['__journal__systemd_unit']
        target_label: 'unit'
      - source_labels: ['__journal_syslog_identifier']
        target_label: 'syslog_identifier'
@instantdreams
Copy link

When using image: grafana/promtail:latest the following was observed:

2025-02-12T16:42:35.414670510Z level=warn ts=2025-02-12T16:42:35.34821709Z caller=journaltargetmanager.go:29 msg="WARNING!!! Journal target was configured but support for reading the systemd journal is not compiled into this build of promtail!"
2025-02-12T16:42:35.414743930Z level=warn ts=2025-02-12T16:42:35.350539938Z caller=promtail.go:265 msg="enable watchConfig"

Changing to image: grafana/promtail:3.3.2 returned the following:

2025-02-12T17:46:05.187206984Z level=warn ts=2025-02-12T17:46:05.100130135Z caller=promtail.go:263 msg="enable watchConfig"

Reverting does at least fix the issue.

@mindrunner
Copy link
Author

Works for me! Thanks @instantdreams.

@ashwanthgoli
Copy link
Contributor

reopening as a patch release is not yet out

@ashwanthgoli
Copy link
Contributor

@mindrunner can you try with v3.4.2 release?

@mindrunner
Copy link
Author

@mindrunner can you try with v3.4.2 release?

works for me

@ashwanthgoli
Copy link
Contributor

great! closing the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants