diff --git a/awx/main/utils/external_logging.py b/awx/main/utils/external_logging.py index f3d747b300..bf82231af0 100644 --- a/awx/main/utils/external_logging.py +++ b/awx/main/utils/external_logging.py @@ -31,7 +31,7 @@ def construct_rsyslog_conf_template(settings=settings): '$WorkDirectory /var/lib/awx/rsyslog', f'$MaxMessageSize {max_bytes}', '$IncludeConfig /var/lib/awx/rsyslog/conf.d/*.conf', - '$ModLoad imuxsock', + 'module(load="imuxsock" SysSock.Use="off")', 'input(type="imuxsock" Socket="' + settings.LOGGING['handlers']['external_logger']['address'] + '" unlink="on")', 'template(name="awx" type="string" string="%rawmsg-after-pri%")', ]) diff --git a/installer/roles/image_build/files/rsyslog.conf b/installer/roles/image_build/files/rsyslog.conf index dec1f8576e..b04bdbcd52 100644 --- a/installer/roles/image_build/files/rsyslog.conf +++ b/installer/roles/image_build/files/rsyslog.conf @@ -1,7 +1,7 @@ $WorkDirectory /var/lib/awx/rsyslog $MaxMessageSize 700000 $IncludeConfig /var/lib/awx/rsyslog/conf.d/*.conf -$ModLoad imuxsock +module(load="imuxsock" SysSock.Use="off") input(type="imuxsock" Socket="/var/run/rsyslog/rsyslog.sock" unlink="on") template(name="awx" type="string" string="%msg%") action(type="omfile" file="/dev/null") diff --git a/tools/docker-compose/rsyslog.conf b/tools/docker-compose/rsyslog.conf index dec1f8576e..b04bdbcd52 100644 --- a/tools/docker-compose/rsyslog.conf +++ b/tools/docker-compose/rsyslog.conf @@ -1,7 +1,7 @@ $WorkDirectory /var/lib/awx/rsyslog $MaxMessageSize 700000 $IncludeConfig /var/lib/awx/rsyslog/conf.d/*.conf -$ModLoad imuxsock +module(load="imuxsock" SysSock.Use="off") input(type="imuxsock" Socket="/var/run/rsyslog/rsyslog.sock" unlink="on") template(name="awx" type="string" string="%msg%") action(type="omfile" file="/dev/null")