mirror of
https://github.com/ansible/awx.git
synced 2026-03-18 17:37:30 -02:30
rsyslogd: ignore /dev/log when we load imuxsock
This commit is contained in:
@@ -31,7 +31,7 @@ def construct_rsyslog_conf_template(settings=settings):
|
|||||||
'$WorkDirectory /var/lib/awx/rsyslog',
|
'$WorkDirectory /var/lib/awx/rsyslog',
|
||||||
f'$MaxMessageSize {max_bytes}',
|
f'$MaxMessageSize {max_bytes}',
|
||||||
'$IncludeConfig /var/lib/awx/rsyslog/conf.d/*.conf',
|
'$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")',
|
'input(type="imuxsock" Socket="' + settings.LOGGING['handlers']['external_logger']['address'] + '" unlink="on")',
|
||||||
'template(name="awx" type="string" string="%rawmsg-after-pri%")',
|
'template(name="awx" type="string" string="%rawmsg-after-pri%")',
|
||||||
])
|
])
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
$WorkDirectory /var/lib/awx/rsyslog
|
$WorkDirectory /var/lib/awx/rsyslog
|
||||||
$MaxMessageSize 700000
|
$MaxMessageSize 700000
|
||||||
$IncludeConfig /var/lib/awx/rsyslog/conf.d/*.conf
|
$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")
|
input(type="imuxsock" Socket="/var/run/rsyslog/rsyslog.sock" unlink="on")
|
||||||
template(name="awx" type="string" string="%msg%")
|
template(name="awx" type="string" string="%msg%")
|
||||||
action(type="omfile" file="/dev/null")
|
action(type="omfile" file="/dev/null")
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
$WorkDirectory /var/lib/awx/rsyslog
|
$WorkDirectory /var/lib/awx/rsyslog
|
||||||
$MaxMessageSize 700000
|
$MaxMessageSize 700000
|
||||||
$IncludeConfig /var/lib/awx/rsyslog/conf.d/*.conf
|
$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")
|
input(type="imuxsock" Socket="/var/run/rsyslog/rsyslog.sock" unlink="on")
|
||||||
template(name="awx" type="string" string="%msg%")
|
template(name="awx" type="string" string="%msg%")
|
||||||
action(type="omfile" file="/dev/null")
|
action(type="omfile" file="/dev/null")
|
||||||
|
|||||||
Reference in New Issue
Block a user