blob: 9f1c6e8d64b160643e8afb307e2992954031f1bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
|
Installing and configuring Rsyslog
==================================
General procedures to install and configure.
Installing from packages
------------------------
How to install using apt-get, yum, etc.
Installing from sources
-----------------------
How to compile the sources into your system.
Testing configuration blocks
.. code-block:: bash
#### MODULES ####
# Load (i)nput and (o)utput (m)odules
module(load="imuxsock")
module(load="imklog")
module(load="imudp")
module(load="imtcp")
module(load="imrelp")
module(load="omrelp")
module(load="impstats" interval="3600" severity="7" log.syslog="off" log.file="/var/log/rsyslog-stats.log")
# Module parameters
input(type="imrelp" port="1514" ruleset="remote")
input(type="imtcp" port="514" ruleset="remote")
input(type="imudp" port="514" ruleset="remote")
#### GLOBAL DIRECTIVES ####
# Use default timestamp format
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
# Spool files
$WorkDirectory /var/spool/rsyslog
# Filter duplicate messages
$RepeatedMsgReduction on
#### RULES ####
#...cut out standard log rules for brevity...#
ruleset(name="remote"){
action(Name="storage"
Type="omrelp"
Target="10.1.1.100"
Port="514"
Action.ExecOnlyWhenPreviousIsSuspended="on"
queue.FileName="storage-buffer"
queue.SaveOnShutdown="on"
queue.Type="LinkedList"
Action.ResumeInterval="30"
Action.ResumeRetryCount="-1"
Timeout="5")
action(Name="analysis"
Type="omrelp"
Target="10.1.1.101"
Port="514"
Action.ExecOnlyWhenPreviousIsSuspended="on"
queue.FileName="analysis-buffer"
queue.SaveOnShutdown="on"
queue.Type="LinkedList"
Action.ResumeInterval="30"
Action.ResumeRetryCount="-1"
Timeout="5")
action(Name="indexer"
Type="omfwd"
Target="10.1.1.102"
Protocol="tcp"
Port="514"
Action.ExecOnlyWhenPreviousIsSuspended="on"
queue.FileName="indexer-buffer"
queue.SaveOnShutdown="on"
queue.Type="LinkedList"
Action.ResumeInterval="30"
Action.ResumeRetryCount="-1"
Timeout="5")
}
#### INCLUDES ####
# Includes config files (Do these last)
$IncludeConfig /etc/rsyslog.d/*.conf
.. note::
You'll learn exactly how to load each file/format in the next section.
.. option:: dest_dir
Destination directory.
.. option:: -m <module>, --module <module>
Run a module as a script.
.. envvar:: nome_envvar
Descrevendo um programa.
.. program:: rm
.. option:: -r
Work recursively.
.. program:: svn
.. option:: -r revision
Specify the revision to work upon.
-------------------------------------------------
.. describe:: PAPER
You can set this variable to select a paper size.
-------------------------------------------------
todo::
Este item é do TO DO.
-------------------------------------------------
todolist::
none
-------------------------------------------------
FIM
|