Commit c5cafe5f3a6e99d4e4db271320239c694dbe8283
1 parent
5dda5ad2
Exists in
syslog
Changing template rsyslog.conf to rsyslog.d/node.conf
Showing
3 changed files
with
4 additions
and
52 deletions
Show diff stats
cookbooks/rsyslog/recipes/node.rb
... | ... | @@ -4,8 +4,8 @@ package 'rsyslog' do |
4 | 4 | action [:install, :upgrade] |
5 | 5 | end |
6 | 6 | |
7 | -template '/etc/rsyslog.conf' do | |
8 | - source "node/rsyslog.conf.erb" | |
7 | +template '/etc/rsyslog.d/node.conf' do | |
8 | + source "node/node.conf.erb" | |
9 | 9 | owner 'root' |
10 | 10 | group 'root' |
11 | 11 | mode 0644 | ... | ... |
cookbooks/rsyslog/templates/node/rsyslog.conf.erb
... | ... | @@ -1,50 +0,0 @@ |
1 | -#### MODULES #### | |
2 | - | |
3 | -# The imjournal module bellow is now used as a message source instead of imuxsock. | |
4 | -$ModLoad imuxsock # provides support for local system logging (e.g. via logger command) | |
5 | -$ModLoad imjournal # provides access to the systemd journal | |
6 | - | |
7 | -#### GLOBAL DIRECTIVES #### | |
8 | - | |
9 | -# Where to place auxiliary files | |
10 | -$WorkDirectory /var/lib/rsyslog | |
11 | - | |
12 | -# Use default timestamp format | |
13 | -$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat | |
14 | - | |
15 | -# Include all config files in /etc/rsyslog.d/ | |
16 | -$IncludeConfig /etc/rsyslog.d/*.conf | |
17 | - | |
18 | -# Turn off message reception via local log socket; | |
19 | -# local messages are retrieved through imjournal now. | |
20 | -$OmitLocalLogging on | |
21 | - | |
22 | -# File to store the position in the journal | |
23 | -$IMJournalStateFile imjournal.state | |
24 | - | |
25 | -#### RULES #### | |
26 | - | |
27 | -# Log anything (except mail) of level info or higher. | |
28 | -# Don't log private authentication messages! | |
29 | -*.info;mail.none;authpriv.none;cron.none /var/log/messages | |
30 | - | |
31 | -# The authpriv file has restricted access. | |
32 | -authpriv.* /var/log/secure | |
33 | - | |
34 | -# Log all the mail messages in one place. | |
35 | -mail.* -/var/log/maillog | |
36 | - | |
37 | -# Log cron stuff | |
38 | -cron.* /var/log/cron | |
39 | - | |
40 | -# Everybody gets emergency messages | |
41 | -*.emerg :omusrmsg:* | |
42 | - | |
43 | -# Save news errors of level crit and higher in a special file. | |
44 | -uucp,news.crit /var/log/spooler | |
45 | - | |
46 | -# Save boot messages also to boot.log | |
47 | -local7.* /var/log/boot.log | |
48 | - | |
49 | -# Sending <%= node.name %> logs | |
50 | -*.* @@<%= node['peers']['monitor'] %> | |
51 | 0 | \ No newline at end of file |