Skip to content

Commit

Permalink
[rsyslog]: Explicitly set the notify mode for rsyslog imfile module (#…
Browse files Browse the repository at this point in the history
…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 <abdosi@microsoft.com>
  • Loading branch information
abdosi authored and lguohan committed Jan 6, 2021
1 parent 5becc2a commit dd25f77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dockers/docker-base/etc/rsyslog.d/supervisor.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module(load="imfile") #By default notify mode
module(load="imfile" mode="inotify") # Ensure "inotify" mode is used
$WorkDirectory /var/log/supervisor
# Start Monitoring the file
input(type="imfile"
Expand Down

0 comments on commit dd25f77

Please sign in to comment.