Skip to content

Commit 63bb783

Browse files
committed
Merge branch 'master' into v8-stable
Conflicts: source/conf.py
2 parents a7d83ef + b203963 commit 63bb783

26 files changed

+639
-125
lines changed

source/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@
4444

4545
# General information about the project.
4646
project = u'rsyslog'
47-
copyright = u'2008-2014, Rainer Gerhards and Adiscon'
47+
copyright = u'2008-2015, Rainer Gerhards and Adiscon'
4848

4949
# The version info for the project you're documenting, acts as replacement for
5050
# |version| and |release|, also used in various other places throughout the
5151
# built documents.
5252
#
5353
# The short X.Y version.
54-
version = '8.7'
54+
version = '8.8'
5555
# The full version, including alpha/beta/rc tags.
56-
release = '8.7.0'
56+
release = '8.8.0'
5757

5858
# The language for content autogenerated by Sphinx. Refer to documentation
5959
# for a list of supported languages.

source/configuration/modules/imfile.rst

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,27 @@ last processed location and continues to work from there upon restart.
3636
So no data is lost during a restart (except, as noted above, if the file
3737
is rotated just in this very moment).
3838

39-
Currently, the file must have a fixed name and location (directory).
40-
It is planned to add support for dynamically generating file names in the
41-
future.
42-
4339
See Also
4440
........
4541

4642
* presentation on `using wildcards with imfile <http://www.slideshare.net/rainergerhards1/using-wildcards-with-rsyslogs-file-monitor-imfile>`_
4743

44+
Meta Data
45+
.........
46+
The imfile module supports message metadata. It supports the following
47+
data items
48+
49+
- filename
50+
51+
Name of the file where the message originated from. This is most
52+
useful when using wildcards inside file monitors, because it then
53+
is the only way to know which file the message originated from.
54+
55+
Meta data is only present if enabled. By default it is enabled for
56+
input() statements that contain wildcards. For all others, it is
57+
disabled by default. It can explicitely be turned on or off via the
58+
*addMetadata* input() parameter, which always overrides the default.
59+
4860
State Files
4961
...........
5062
Rsyslog must keep track of which parts of the to be monitored file
@@ -132,7 +144,8 @@ Input Parameters
132144

133145
**(Required Parameter)**
134146
The file being monitored. So far, this must be an absolute name (no
135-
macros or templates)
147+
macros or templates). Note that wildcards are supported at the file
148+
name level (see "Wildcards" above for more details).
136149

137150
.. index::
138151
single: imfile; Tag
@@ -266,6 +279,13 @@ Input Parameters
266279

267280
Binds the listener to a specific :doc:`ruleset <../../concepts/multi_ruleset>`.
268281

282+
.. function:: addMetadata [on/off]
283+
284+
**Default: see intro section on Metadata**
285+
286+
This is used to turn on or off the addition of metadata to the
287+
message object.
288+
269289
.. function:: stateFile [name-of-state-file]
270290

271291
**Default: unset**

source/configuration/modules/imjournal.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
imjournal: Systemd Journal Input Module
22
=======================================
33

4-
**Module Name:    imjournal**
4+
**Module Name:** imjournal
55

66
**Author:** Milan Bartos <mbartos@redhat.com> (This module is **not**
77
project-supported)
@@ -80,12 +80,16 @@ plugin only if there is hard need to do so.**
8080
This option specifies whether imjournal should ignore messages
8181
currently in journal and read only new messages. This option is only
8282
used when there is no StateFile to avoid message loss.
83+
8384
- **DefaultSeverity** <severity>
85+
8486
Some messages comming from journald don't have the SYSLOG_PRIORITY
8587
field. These are typically the messages logged through journald's
8688
native API. This option specifies the default severity for these
8789
messages. Can be given either as a name or a number. Defaults to 'notice'.
90+
8891
- **DefaultFacility** <facility>
92+
8993
Some messages comming from journald don't have the SYSLOG_FACILITY
9094
field. These are typically the messages logged through journald's
9195
native API. This option specifies the default facility for these

source/configuration/modules/imptcp.rst

Lines changed: 36 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ provide TLS services. Encryption can be provided by using
1010
This module has no limit on the number of listeners and sessions that
1111
can be used.
1212

13-
**Author:**\ Rainer Gerhards <rgerhards@adiscon.com>
13+
**Author:** Rainer Gerhards <rgerhards@adiscon.com>
1414

1515
Configuration Directives
1616
------------------------
@@ -25,7 +25,8 @@ Module Parameters
2525
These paramters can be used with the "module()" statement. They apply
2626
globaly to all inputs defined by the module.
2727

28-
- Threads <number>
28+
.. function:: Threads <number>
29+
2930
Number of helper worker threads to process incoming messages. These
3031
threads are utilized to pull data off the network. On a busy system,
3132
additional helper threads (but not more than there are CPUs/Cores)
@@ -40,6 +41,31 @@ Input Parameters
4041
These parameters can be used with the "input()" statement. They apply to
4142
the input they are specified with.
4243

44+
.. function:: port <number>
45+
46+
*Mandatory*
47+
48+
Select a port to listen on.
49+
50+
.. function:: name <name>
51+
52+
Sets a name for the inputname property. If no name is set "imptcp"
53+
is used by default. Setting a name is not strictly necessary, but can
54+
be useful to apply filtering based on which input the message was
55+
received from. Note that the name also shows up in
56+
:doc:`impstats <impstats>` logs.
57+
58+
.. function:: ruleset <name>
59+
60+
Binds specified ruleset to next server defined.
61+
62+
.. function:: address <name>
63+
64+
*Default: all interfaces*
65+
66+
On multi-homed machines, specifies to which local address the
67+
listerner should be bound.
68+
4369
.. function:: AddtlFrameDelimiter <Delimiter>
4470

4571
This directive permits to specify an additional frame delimiter for
@@ -116,26 +142,6 @@ the input they are specified with.
116142
This has only effect if keep-alive is enabled. The functionality may
117143
not be available on all platforms.
118144

119-
.. function:: Port <number>
120-
121-
Select a port to listen on
122-
123-
.. function:: Name <name>
124-
125-
Sets a name for the inputname property. If no name is set "imptcp"
126-
is used by default. Setting a name is not strictly necessary, but can
127-
be useful to apply filtering based on which input the message was
128-
received from.
129-
130-
.. function:: Ruleset <name>
131-
132-
Binds specified ruleset to next server defined.
133-
134-
.. function:: Address <name>
135-
136-
On multi-homed machines, specifies to which local address the
137-
listerner should be bound.
138-
139145
.. function:: RateLimit.Interval [number]
140146

141147
*Default is 0, which turns off rate limiting*
@@ -164,6 +170,14 @@ This sets up a TCP server on port 514:
164170
module(load="imptcp") # needs to be done just once
165171
input(type="imptcp" port="514")
166172

173+
This creates a listener that listens on the local loopback
174+
interface, only.
175+
176+
::
177+
178+
module(load="imptcp") # needs to be done just once
179+
input(type="imptcp" port="514" address="127.0.0.1")
180+
167181
Legacy Configuration Directives
168182
-------------------------------
169183

source/configuration/modules/imtcp.rst

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,31 @@ Global Parameters
5252
enable of disable keep-alive packets at the tcp socket layer. The
5353
default is to disable them.
5454

55+
.. function:: KeepAlive.Probes <number>
56+
57+
The number of unacknowledged probes to send before considering the
58+
connection dead and notifying the application layer. The default, 0,
59+
means that the operating system defaults are used. This has only
60+
effect if keep-alive is enabled. The functionality may not be
61+
available on all platforms.
62+
63+
.. function:: KeepAlive.Interval <number>
64+
65+
The interval between subsequential keepalive probes, regardless of
66+
what the connection has exchanged in the meantime. The default, 0,
67+
means that the operating system defaults are used. This has only
68+
effect if keep-alive is enabled. The functionality may not be
69+
available on all platforms.
70+
71+
.. function:: KeepAlive.Time <number>
72+
73+
The interval between the last data packet sent (simple ACKs are not
74+
considered data) and the first keepalive probe; after the connection
75+
is marked to need keepalive, this counter is not used any further.
76+
The default, 0, means that the operating system defaults are used.
77+
This has only effect if keep-alive is enabled. The functionality may
78+
not be available on all platforms.
79+
5580
.. function:: FlowControl on/off
5681

5782
*Default is on*
@@ -189,6 +214,18 @@ Legacy Configuration Directives
189214

190215
equivalent to: KeepAlive
191216

217+
.. function:: $InputTCPServerKeepAlive\_probes <number>
218+
219+
Equivalent to: KeepAlive.Probes
220+
221+
.. function:: $InputTCPServerKeepAlive\_intvl <number>
222+
223+
Equivalent to: KeepAlive.Interval
224+
225+
.. function:: $InputTCPServerKeepAlive\_time <number>
226+
227+
Equivalent to: KeepAlive.Time
228+
192229
.. function:: $InputTCPServerRun <port>
193230

194231
equivalent to: Port
@@ -235,6 +272,10 @@ Caveats/Known Bugs
235272
- module always binds to all interfaces
236273
- can not be loaded together with `imgssapi <imgssapi.html>`_ (which
237274
includes the functionality of imtcp)
275+
- increasing MaxSessions and MaxListeners doesn't change MaxOpenFiles,
276+
consider increasing this global configuration parameter too (on Linux
277+
check the actual value for running process by in /proc/PID/limits; default
278+
limit on Linux is 1024)
238279

239280
Example
240281
-------

source/configuration/modules/imudp.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ the OS until the user is sufficiently privileged.
269269

270270
::
271271

272-
module(load="imudp") # needs to be done just once input
273-
(type="imudp" port="514" rcvbufSize="1m")
272+
module(load="imudp") # needs to be done just once
273+
input(type="imudp" port="514" rcvbufSize="1m")
274274

275275
In the next example, we set up three listeners at ports 10514, 10515 and
276276
10516 and assign a listner name of "udp" to it, followed by the port

source/configuration/modules/mmfields.rst

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,18 +72,33 @@ Currently none.
7272
This is a very simple use case where each message is parsed. The default
7373
separator character of comma is being used.
7474

75-
module(load="mmfields") template(name="ftpl" type=string
76-
string="%$!%\\n") action(type="omfields") action(type="omfile"
77-
file="/path/to/logfile" template="ftpl")
75+
::
76+
77+
module(load="mmfields")
78+
template(name="ftpl"
79+
type=string
80+
string="%$!%\\n")
81+
action(type="omfields")
82+
action(type="omfile"
83+
file="/path/to/logfile"
84+
template="ftpl")
7885

7986
The following sample is similar to the previous one, but this time the
8087
colon is used as separator and data is written into the "$!mmfields"
8188
json path.
8289

83-
module(load="mmfields") template(name="ftpl" type=string
84-
string="%$!%\\n") action(type="omfields" separator=":"
85-
jsonRoot="!mmfields") action(type="omfile" file="/path/to/logfile"
86-
template="ftpl")
90+
::
91+
92+
module(load="mmfields")
93+
template(name="ftpl"
94+
type=string
95+
string="%$!%\\n")
96+
action(type="omfields"
97+
separator=":"
98+
jsonRoot="!mmfields")
99+
action(type="omfile"
100+
file="/path/to/logfile"
101+
template="ftpl")
87102

88103
This documentation is part of the `rsyslog <http://www.rsyslog.com/>`_
89104
project.

source/configuration/modules/mmjsonparse.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Log Message Normalization Module
2-
================================
1+
JSON/CEE Structured Content Extraction Module (mmjsonparse)
2+
===========================================================
33

44
**Module Name:    mmjsonparse**
55

source/configuration/modules/mmnormalize.rst

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Log Message Normalization Module
2-
================================
1+
Log Message Normalization Module (mmnormalize)
2+
==============================================
33

44
**Module Name:    mmnormalize**
55

@@ -31,6 +31,14 @@ Note that mmnormalize should only be called once on each message.
3131
Behaviour is undefined if multiple calls to mmnormalize happen for the
3232
same message.
3333

34+
**Module Parameters**
35+
36+
- **allow_regex** [boolean] defaults to "off"
37+
Specifies if regex field-type should be allowed. Regex field-type has
38+
significantly higher computational overhead compared to other fields,
39+
so it should be avoided when another field-type can achieve the desired
40+
effect. Needs to be "on" for regex field-type to work.
41+
3442
**Action Parameters**:
3543

3644
- **ruleBase** [word]
@@ -49,6 +57,14 @@ same message.
4957
placed. By default, all parsed properties are merged into root of
5058
message properties. You can place them under a subtree, instead. You
5159
can place them in local variables, also, by setting path="$.".
60+
- **variable** [word] *(Available since: 8.5.1)*
61+
Specifies if a variable insteed of property 'msg' should be used for
62+
normalization. A varible can be property, local variable, json-path etc.
63+
Please note that **useRawMsg** overrides this parameter, so if **useRawMsg**
64+
is set, **variable** will be ignored and raw message will be used.
65+
66+
67+
5268

5369
**Legacy Configuration Directives**:
5470

0 commit comments

Comments
 (0)