Skip to content

Commit dd25f77

Browse files
abdosilguohan
authored andcommitted
[rsyslog]: Explicitly set the notify mode for rsyslog imfile module (#6351)
Enable the notify mode of rsyslogd imfile module used for supervisord logs in docker container. Setup the mode="inotify" when loading imfile, made sure we are are getting supervisord logs in host immediately. Signed-off-by: Abhishek Dosi <[email protected]>
1 parent 5becc2a commit dd25f77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dockers/docker-base/etc/rsyslog.d/supervisor.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module(load="imfile") #By default notify mode
1+
module(load="imfile" mode="inotify") # Ensure "inotify" mode is used
22
$WorkDirectory /var/log/supervisor
33
# Start Monitoring the file
44
input(type="imfile"

0 commit comments

Comments
 (0)