@@ -11,14 +11,12 @@ id: adm-man-loggen
1111manid : 1
1212manname : loggen
1313description : >-
14- loggen --- Generate syslog messages at a specified rate
14+ loggen - Generate syslog messages at a specified rate
1515---
1616
1717## SYNOPSIS
1818
19- loggen [ options]
20-
21- target [ port]
19+ ** loggen [ options] target [ port] **
2220
2321## DESCRIPTION
2422
@@ -86,10 +84,11 @@ statistics:
8684` --interval <seconds> ` or ` -I <seconds> `
8785 The number of seconds loggen will run. Default value: 10
8886
89- NOTE: When `--interval` and `--number` are used together, loggen will
90- send messages until the period set in `--interval` expires or the
91- amount of messages set in `--number` is reached, whichever happens
92- first.
87+ ** NOTE:** When ` --interval ` and ` --number ` are used together, loggen will
88+ send messages until the period set in ` --interval ` expires or the
89+ amount of messages set in ` --number ` is reached, whichever happens
90+ first.
91+ {: .notice--info}
9392
9493` --ipv6 ` or ` -6 `
9594 Specify the destination using its IPv6 address. Note that the
@@ -103,10 +102,11 @@ statistics:
103102` --number <number-of-messages> ` or ` -n <number-of-messages> `
104103 Number of messages to generate.
105104
106- NOTE: When `--interval` and `--number` are used together, loggen will
107- send messages until the period set in `--interval` expires or the
108- amount of messages set in `--number` is reached, whichever happens
109- first.
105+ ** NOTE:** When ` --interval ` and ` --number ` are used together, loggen will
106+ send messages until the period set in ` --interval ` expires or the
107+ amount of messages set in ` --number ` is reached, whichever happens
108+ first.
109+ {: .notice--info}
110110
111111` --no-framing ` or ` -F `
112112 Do not use the framing of the IETF-syslog protocol style, even if
@@ -123,29 +123,38 @@ statistics:
123123 The number of messages generated per second for every active
124124 connection. Default value: 1000
125125
126- If you want to change the message rate while loggen is running, send
127- SIGUSR1 to double the message rate, or SIGUSR2 to halve it:
126+ ** NOTE:** If you want to change the message rate while loggen is running, send
127+ SIGUSR1 to double the message rate, or SIGUSR2 to halve it.
128+ For example:
129+ {: .notice--info}
128130
129- kill `-USR1 <loggen-pid>kill` `-USR2 <loggen-pid>`
131+ ``` shell
132+ kill -USR1 < loggen-pid> kill -USR2 < loggen-pid>
133+ ```
130134
131135` --read-file <filename> ` or ` -R <filename> `
132136 Read the messages from a file and send them to the target. See also
133137 the ` --skip-tokens ` option.
134138 Specify - as the input file to read messages from the standard input
135- (stdio). Note that when reading messages from the standard input,
136- loggen can only use a single thread. The -R -parameters must be
137- placed at end of command, like: loggen 127.0.0.1 1061 ` --read-file ` -
139+ (stdio).
140+
141+ ** NOTE:** When reading messages from the standard input,
142+ loggen can only use a single thread. The -R -parameters must be
143+ placed at end of command, like:
144+ {: .notice--info}
145+
146+ ``` shell
147+ loggen 127.0.0.1 1061 ` --read-file` -
148+ ```
138149
139150` --sdata <data-to-send> ` or ` -p <data-to-send> `
140151 Send the argument of the ` --sdata ` option as the ` SDATA ` part of
141152 IETF-syslog (RFC-5424 formatted) messages. Use it together with the
142- ` --syslog-proto ` option.
143-
144- For example:
153+ ` --syslog-proto ` option, for example:
145154
146- ```config
147- --sdata "[test name=\"value\"]
148- ```
155+ ``` config
156+ --syslog-proto --sdata "[test name=\"value\"]"
157+ ```
149158
150159` --size <message-size> ` or ` -s <message-size> `
151160 The size of a syslog message in bytes. Default value: 256. Minimum
@@ -165,7 +174,7 @@ statistics:
165174` --syslog-proto ` or ` -P `
166175 Use the new IETF-syslog message format. By
167176 default, loggen uses the legacy BSD-syslog message format.
168- See also the \ - -no-framing option.
177+ See also the --no-framing option.
169178
170179` --unix </path/to/socket> ` or ` -x </path/to/socket> `
171180 Use a UNIX domain socket to send the messages to the target.
@@ -178,45 +187,45 @@ statistics:
178187` --version ` or ` -V `
179188 Display version number of syslog-ng.
180189
181- ### EXAMPLES:
190+ ### EXAMPLES
182191
183192The following command generates 100 messages per second for ten minutes,
184193and sends them to port 2010 of the localhost via TCP. Each message is
185194300 bytes long.
186195
187- ``` bash
196+ ``` shell
188197loggen --size 300 --rate 100 --interval 600 127.0.0.1 2010
189198```
190199
191200The following command is similar to the one above, but uses the UDP
192201protocol.
193202
194- ``` bash
203+ ``` shell
195204loggen --inet --dgram --size 300 --rate 100 --interval 600 127.0.0.1 2010
196205```
197206
198207Send a single message on TCP6 to the ::1 IPv6 address, port 1061:
199208
200- ``` bash
209+ ``` shell
201210loggen --ipv6 --number 1 ::1 1061
202211```
203212
204213Send a single message on UDP6 to the ::1 IPv6 address, port 1061:
205214
206- ``` bash
215+ ``` shell
207216loggen --ipv6 --dgram --number 1 ::1 1061
208217```
209218
210219Send a single message using a unix domain-socket:
211220
212- ``` bash
221+ ``` shell
213222loggen --unix --stream --number 1 < /path/to/socket>
214223```
215224
216225Read messages from the standard input (stdio) and send them to the
217226localhost:
218227
219- ``` bash
228+ ``` shell
220229loggen 127.0.0.1 1061 --read-file -
221230```
222231
0 commit comments