You are not logged in.
Pages: 1
I took the base/arch image and installed syslog-ng in it
Running something like
# syslog-ng &
# logger -p auth.error "test msg"
does not show up anywhere in /var/log. The only message I can find from syslog is the message that it started in "everything.log" and "syslog.log" under /var/log.
I'm using the default configuration, which has sources and destination set-up for auth.
Any help is appreciated!
Offline
What about systemd journal?
Offline
What about systemd journal?
Systemd does not run inside arch/base. And as such, the journal is empty.
Offline
Just to make sure, are you talking about https://registry.hub.docker.com/u/base/arch/ ?
I see there's also https://registry.hub.docker.com/u/base/archlinux/
Offline
Just to make sure, are you talking about https://registry.hub.docker.com/u/base/arch/ ?
I see there's also https://registry.hub.docker.com/u/base/archlinux/
The former.
Offline
A.J.Rouvoet,
I encountered a bug in syslog-ng 3.6.1 [1] that may be the cause of your problem also.
If built with enable-systemd, it will always use systemd as log source, regardless of whether systemd is actually running.
The bug was solved in 3.6/master branch [2] .
[1] https://bbs.archlinux.org/viewtopic.php … 3#p1481453
[2] https://github.com/balabit/syslog-ng/co … 603cb9f1ca
Added
I felt i should add some clarification
Arch syslog-ng default config is to use the system() source .
Because of the bug syslog-ng only accepts systemd as source for logging .
If systemd is not running in your docker install, then syslog-ng will get nothing.
Last edited by Lone_Wolf (2014-12-09 11:42:10)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Thanks Lone Wolf for your explanation! That should solve it.
For my particular case I found a better solution actually. I want the logs on the host anyway, so I'll mount the host's /dev/log on the container's /dev/log to accomplish this.
Closing
Offline
Pages: 1