LOGGEN(1) | The loggen manual page | LOGGEN(1) |
NAME¶
loggen - Generate syslog messages at a specified rate
SYNOPSIS¶
loggen [options]target [port]
DESCRIPTION¶
NOTE: The loggen application is distributed with the syslog-ng system logging application, and is usually part of the syslog-ng package. The latest version of the syslog-ng application is available at the official syslog-ng website[1].
This manual page is only an abstract, for the complete documentation of syslog-ng, see The syslog-ng Administrator Guide[2].
The loggen application is tool to test and stress-test your syslog server and the connection to the server. It can send syslog messages to the server at a specified rate, using a number of connection types and protocols, including TCP, UDP, and unix domain sockets. The messages can be generated automatically (repeating the PADDstring over and over), or read from a file or the standard input.
When loggen finishes sending the messages, it displays the following statistics:
OPTIONS¶
--active-connections <number-of-connections>
The loggen utility waits until every connection is established before starting to send messages. See also the --idle-connections option.
--csv or -C
--dgram or -D
--dont-parse or -d
--help or -h
--idle-connections <number-of-connections>
--inet or -i
--interval <seconds> or -I <seconds>
Note
Note that when the --interval and --number are used together, loggen will send messages until the period set in --interval expires or the amount of messages set in --number is reached, whichever happens first.
--ipv6 or -6
--loop-reading or -l
--number <number-of-messages> or -n <number-of-messages>
Note
Note that when the --interval and --number are used together, loggen will send messages until the period set in --interval expires or the amount of messages set in --number is reached, whichever happens first.
--no-framing or -F
--quiet or -Q
--permanent or -T
--rate <message/second> or -r <message/second>
--read-file <filename> or -R <filename>
Specify - as the input file to read messages from the standard input (stdio). Note that when reading messages from the standard input, loggen can only use a single thread. The -R - parameters must be placed at end of command, like: loggen 127.0.0.1 1061 --read-file -
--sdata <data-to-send> or -p <data-to-send>
--size <message-size> or -s <message-size>
--skip-tokens <number>
--stream or -S
--syslog-proto or -P
--unix </path/to/socket> or -x </path/to/socket>
--use-ssl or -U
--version or -V
EXAMPLES¶
The following command generates 100 messages per second for ten minutes, and sends them to port 2010 of the localhost via TCP. Each message is 300 bytes long.
loggen --stream --size 300 --rate 100 --interval 600 127.0.0.1 2010
The following command is similar to the one above, but uses the UDP protocol.
loggen --inet --dgram --size 300 --rate 100 --interval 600 127.0.0.1 2010
Send a single message on TCP6 to the ::1 IPv6 address, port 1061:
loggen --ipv6 --number 1 ::1 1061
Send a single message on UDP6 to the ::1 IPv6 address, port 1061:
loggen --ipv6 --dgram --number 1 ::1 1061
Send a single message using a unix domain-socket:
loggen --unix --stream --number 1 </path/to/socket>
Read messages from the standard input (stdio) and send them to the localhost:
loggen 127.0.0.1 1061 --read-file -
FILES¶
/usr/bin/loggen
SEE ALSO¶
Note
For the detailed documentation of see The 4.4 Administrator Guide[2]
If you experience any problems or need help with syslog-ng, visit the syslog-ng mailing list[3].
For news and notifications about of syslog-ng, visit the syslog-ng blogs[4].
AUTHOR¶
This manual page was written by the Balabit Documentation Team <documentation@balabit.com>.
COPYRIGHT¶
NOTES¶
- 1.
- the official syslog-ng website
- 2.
- The syslog-ng Administrator Guide
- 3.
- syslog-ng mailing list
- 4.
- syslog-ng blogs
08/18/2024 | 4.4 |