Download Documentation - Digi International
Transcript
Syslog-ng
unix_stream(filename [options]):
unix_dgram(filename [options]):
Description: Syslog opens an AF_UNIX socket on the specified filename and begins listening
on the interface and socket for messages.
Parameters:
filename: The name of the file to open an AF_UNIX socket
Options:
owner(name): The owner of the file to specify
group(name): The group of the file to specify
perm(mask): The permission mask of the file to specify
keep-alive(yes/no): Enables/disables whether to keep connections opened when
syslog-ng is restarted. This can only be specified with
unix_stream. [Default: yes]
max-connections(n): The limit on the number of simultaneously opened
connections. This can only be specified with unix_stream.
[Default: 10]
Examples:
The following example receives messages from local syslogd clients:
source sysl { unix_stream(“/dev/log”); };
tcp([options]):
udp([options]):
Description:
Parameters:
Options:
Syslog opens listening connections on the TCP or UDP interfaces and begins
listening for messages. These definitions do not require source parameters since
by default they bind to 0.0.0.0:514 in order that syslog-ng listens on all available
interfaces on the remote syslog port.
None
ip(<ip-address>):
Bind to the IP address identified. [Default: 0.0.0.0]
port(<port-number>): Bind to and listen on the TCP or UDP port. [Default: 514]
max-connections(n): The limit on the number of simultaneously opened
connections. [Default: 10]
Examples:
The following example listens for syslog messages from a syslog client at 10.0.0.1:
source s_udp { udp( ip(10.0.0.1); port(514); ); };
file(filename):
Description:
Parameters:
Syslog opens the specified file and begins reading messages.
filename:
The name of the file to read messages.
Examples:
The following example will receive messages from the Linux kernel:
source s_kernel { file(“/proc/kmsg”); };
Chapter 5
Creating Auto-Alerts and Notifications
28