Last active
August 8, 2023 07:12
-
-
Save oleksandriegorov/2718a7e35b8d17ada934b651d627ab97 to your computer and use it in GitHub Desktop.
Rsyslogd configuration changes to enable local logging for CentOS7 in docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /etc/rsyslog.conf 2019-10-18 15:48:29.000000000 +0000 | |
+++ /root/rsyslog.docker.centos7.conf 2020-03-12 10:47:58.365192000 +0000 | |
@@ -4,10 +4,13 @@ | |
# If you experience problems, see http://www.rsyslog.com/doc/troubleshoot.html | |
#### MODULES #### | |
+module(load="imuxsock") | |
+module(load="omstdout") | |
+*.* :omstdout: | |
# The imjournal module bellow is now used as a message source instead of imuxsock. | |
-$ModLoad imuxsock # provides support for local system logging (e.g. via logger command) | |
-$ModLoad imjournal # provides access to the systemd journal | |
+#$ModLoad imuxsock # provides support for local system logging (e.g. via logger command) | |
+#$ModLoad imjournal # provides access to the systemd journal | |
#$ModLoad imklog # reads kernel messages (the same are read from journald) | |
#$ModLoad immark # provides --MARK-- message capability | |
@@ -37,10 +40,10 @@ | |
# Turn off message reception via local log socket; | |
# local messages are retrieved through imjournal now. | |
-$OmitLocalLogging on | |
+#$OmitLocalLogging on | |
# File to store the position in the journal | |
-$IMJournalStateFile imjournal.state | |
+#$IMJournalStateFile imjournal.state | |
#### RULES #### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment