[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:
abdosi 2021-01-06 00:00:18 -08:00 committed by Guohan Lu
parent 5becc2ac7e
commit dd25f774b5

View File

@ -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"