[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 <abdosi@microsoft.com>
This commit is contained in:
parent
5becc2ac7e
commit
dd25f774b5
@ -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
|
$WorkDirectory /var/log/supervisor
|
||||||
# Start Monitoring the file
|
# Start Monitoring the file
|
||||||
input(type="imfile"
|
input(type="imfile"
|
||||||
|
Reference in New Issue
Block a user