dd25f774b5
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>
10 lines
303 B
Plaintext
10 lines
303 B
Plaintext
module(load="imfile" mode="inotify") # Ensure "inotify" mode is used
|
|
$WorkDirectory /var/log/supervisor
|
|
# Start Monitoring the file
|
|
input(type="imfile"
|
|
File="/var/log/supervisor/supervisord.log"
|
|
Tag="supervisord"
|
|
Severity="info"
|
|
Facility="local0"
|
|
PersistStateInterval="1")
|