Service manual

Appendix G Generating Alarm and Syslog 156
Cyclades-TS Installation & Service Manual
The following source-drivers are available:
a) internal()
- messages generated internally in syslog-ng
b) unix_stream(filename [options]) and unix_dgram(filename [options])
- they open the given AF_UNIX socket, and start listening on them for messages.
- options: owner(name), group(name), perm(mask) are equal global options
keep-alive(yes/no) - selects whether to keep connections opened when syslog-ng is restarted,
can be used only with unix_stream. Default: yes
max-connections(n) - limits the number of simultaneously opened connections. Can be used
only with unix_stream. Default: 10.
c) tcp([options]) and udp([options])
- these drivers let you receive messages from the network, and as the name of the drivers show, you can
use both TCP and UDP.
- none of tcp() and udp() drivers require positional parameters. By default the bind to 0.0.0.0:514, which
means that syslog-ng will listen on all available interfaces.
- options: ip(<ip address>) - the IP address to bind to. Default: 0.0.0.0
port(<number>) - UDP/TCP port used to listen messages. Default: 514
max-connections(n) - limits the number of simultaneously opened connections. Default: 10.
d) file(filename)
- it opens the specified file, and reads messages.
e) pipe(filename)
- it opens a named pipe with the specified name, and listens for messages. (youll need to create the
pipe using mkfifo command).