1

I installed systemd-journal-gatewayd on CentOS7 and started it. If I connect to the given port the HTTP server is answering but the response is always emtpy. Neither /entries?follow nor /entries?boot displays any messages.

Is there anything else to do to enable gateway on CentOS7?

sourcejedi
  • 50,249

1 Answers1

1

You have to give read permissions to user systemd-journal-gateway for file: system.journal

setfacl -m u:systemd-journal-gateway:r system.journal

If your journald is configured for persistent storage file system.journal should be in /var/log/journal/{machine_id}/. If above directory is missing by default journald stores log data in /run/log/journal/.
For more info about configuring journald storage you can check this answer.

taliezin
  • 9,275