Skip to content

print log messages to journald #1040

Open
@andreasgerstmayr

Description

@andreasgerstmayr

Currently only systemd-related messages are in the journal, but not the actual log output of the systemd services, for example pmproxy:

[root@ci-vm-10-0-139-91 lemon]# journalctl -e -u pmproxy
-- Logs begin at Wed 2020-09-09 12:10:27 EDT, end at Wed 2020-09-09 13:16:21 EDT. --
Sep 09 13:16:21 lemon systemd[1]: Starting Proxy for Performance Metrics Collector Daemon...
Sep 09 13:16:21 lemon pmproxy[21091]: Starting pmproxy ...
Sep 09 13:16:21 lemon systemd[1]: Started Proxy for Performance Metrics Collector Daemon.
[root@ci-vm-10-0-139-91 lemon]# cat /var/log/pcp/pmproxy/pmproxy.log 
Log for pmproxy on lemon started Wed Sep  9 13:16:21 2020

pmproxy: PID = 21091, PDU version = 2, user = pcp (993)
pmproxy request port(s):
  sts fd   port  family address
  === ==== ===== ====== =======
  ok    14       unix   /run/pcp/pmproxy.socket
  ok    15 44322 inet   INADDR_ANY
  ok    19 44322 ipv6   INADDR_ANY
  ok    20 44323 inet   INADDR_ANY
  ok    21 44323 ipv6   INADDR_ANY
[Wed Sep  9 13:16:21] pmproxy(21091) Info: OpenSSL 1.1.1g FIPS  21 Apr 2020 - no certificates found
[Wed Sep  9 13:16:21] pmproxy(21091) Info: Redis slots, command keys, schema version setup

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions