From afd60bdc488d6a53efc57b2162d62a58ba2497b2 Mon Sep 17 00:00:00 2001 From: abdosi <58047199+abdosi@users.noreply.github.com> Date: Wed, 6 Jan 2021 00:00:18 -0800 Subject: [PATCH] [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 --- dockers/docker-base/etc/rsyslog.d/supervisor.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dockers/docker-base/etc/rsyslog.d/supervisor.conf b/dockers/docker-base/etc/rsyslog.d/supervisor.conf index ce70f10e6e73..fde8d8a6c994 100644 --- a/dockers/docker-base/etc/rsyslog.d/supervisor.conf +++ b/dockers/docker-base/etc/rsyslog.d/supervisor.conf @@ -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"