do not sync all log back to compass
Change-Id: I242689b4036cb42f08131af150d0094a389fb260
This commit is contained in:
parent
b9a569d506
commit
e7280b8970
@ -76,7 +76,7 @@ EOL
|
|||||||
#if $getVar("compass_server","") != ""
|
#if $getVar("compass_server","") != ""
|
||||||
local3.info @$compass_server:514
|
local3.info @$compass_server:514
|
||||||
#else
|
#else
|
||||||
local3.info @server:514
|
local3.info @@$server:514
|
||||||
#end if
|
#end if
|
||||||
EOL
|
EOL
|
||||||
rm -rf /var/lib/rsyslog/chef_\\$node_log
|
rm -rf /var/lib/rsyslog/chef_\\$node_log
|
||||||
|
@ -10,9 +10,9 @@ cat << EOL > /etc/rsyslog.conf
|
|||||||
\\$ActionResumeRetryCount -1
|
\\$ActionResumeRetryCount -1
|
||||||
\\$ActionQueueSaveOnShutDown on
|
\\$ActionQueueSaveOnShutDown on
|
||||||
#if $getVar("compass_server", "") != ""
|
#if $getVar("compass_server", "") != ""
|
||||||
*.* @@$compass_server:514
|
\# *.* @@$compass_server:514
|
||||||
#else
|
#else
|
||||||
*.* @@$server:514
|
\# *.* @@$server:514
|
||||||
#end if
|
#end if
|
||||||
|
|
||||||
\# Provides UDP syslog reception
|
\# Provides UDP syslog reception
|
||||||
|
@ -71,7 +71,11 @@ EOL
|
|||||||
\\\\$InputFileFacility local3
|
\\\\$InputFileFacility local3
|
||||||
\\\\$InputRunFileMonitor
|
\\\\$InputRunFileMonitor
|
||||||
\\\\$InputFilePollInterval 1
|
\\\\$InputFilePollInterval 1
|
||||||
local3.info @$server:514
|
#if $getVar("compass_server","") != ""
|
||||||
|
local3.info @$compass_server:514
|
||||||
|
#else
|
||||||
|
local3.info @@$server:514
|
||||||
|
#end if
|
||||||
EOL
|
EOL
|
||||||
rm -rf /var/lib/rsyslog/chef_\\$node_log
|
rm -rf /var/lib/rsyslog/chef_\\$node_log
|
||||||
service rsyslog restart
|
service rsyslog restart
|
||||||
|
@ -9,7 +9,11 @@ cat << EOL > /etc/rsyslog.conf
|
|||||||
\\$ActionQueueFileName srvrfwd
|
\\$ActionQueueFileName srvrfwd
|
||||||
\\$ActionResumeRetryCount -1
|
\\$ActionResumeRetryCount -1
|
||||||
\\$ActionQueueSaveOnShutDown on
|
\\$ActionQueueSaveOnShutDown on
|
||||||
*.* @@$server:514
|
#if $getVar("compass_server", "") != ""
|
||||||
|
\# *.* @@$compass_server:514
|
||||||
|
#else
|
||||||
|
\# *.* @@$server:514
|
||||||
|
#end if
|
||||||
|
|
||||||
\# Provides UDP syslog reception
|
\# Provides UDP syslog reception
|
||||||
\#\\$ModLoad imudp
|
\#\\$ModLoad imudp
|
||||||
|
@ -13,9 +13,9 @@
|
|||||||
\$ActionResumeRetryCount -1
|
\$ActionResumeRetryCount -1
|
||||||
\$ActionQueueSaveOnShutDown on
|
\$ActionQueueSaveOnShutDown on
|
||||||
#if $getVar("compass_server", "") != ""
|
#if $getVar("compass_server", "") != ""
|
||||||
*.* @@$compass_server:514
|
\# *.* @@$compass_server:514
|
||||||
#else
|
#else
|
||||||
*.* @@$server:514
|
\# *.* @@$server:514
|
||||||
#end if
|
#end if
|
||||||
|
|
||||||
\# Provides UDP syslog reception
|
\# Provides UDP syslog reception
|
||||||
|
@ -71,7 +71,11 @@ EOL
|
|||||||
\\\\$InputFileFacility local3
|
\\\\$InputFileFacility local3
|
||||||
\\\\$InputRunFileMonitor
|
\\\\$InputRunFileMonitor
|
||||||
\\\\$InputFilePollInterval 1
|
\\\\$InputFilePollInterval 1
|
||||||
local3.info @$server:514
|
#if $getVar("compass_server","") != ""
|
||||||
|
local3.info @$compass_server:514
|
||||||
|
#else
|
||||||
|
local3.info @@$server:514
|
||||||
|
#end if
|
||||||
EOL
|
EOL
|
||||||
rm -rf /var/lib/rsyslog/chef_\\$node_log
|
rm -rf /var/lib/rsyslog/chef_\\$node_log
|
||||||
service rsyslog restart
|
service rsyslog restart
|
||||||
|
Loading…
x
Reference in New Issue
Block a user