User guide

Chapter 3 - Additional Features
User Guide 263
Available macros in filename expansion:
HOST - The name of the source host where the message originated from.
FACILITY - The name of the facility the message is tagged as coming from.
PRIORITY or LEVEL - The priority of the message.
PROGRAM - The name of the program the message was sent by.
YEAR, MONTH, DAY, HOUR, MIN, SEC - The year, month, day, hour, min, sec of the mes-
sage was sent.
TAG - Equals FACILITY/LEVEL.
FULLHOST - The name of the source host and the source-driver:
<source-driver>@<hostname>
MSG or MESSAGE - The message received.
FULLDATE - The date of the message was sent.
Available options:
log_fifo_size(number) - The number of entries in the output file.
sync_freq(number) - The file is synced when this number of messages has been written to
it.
owner(name), group(name), perm(mask) - Equals global options.
template(string) - Syslog-ng writes the string in the file. You can use the MACROS in
the string.
encrypt(yes/no) - Encrypts the resulting file.
compress(yes/no) - Compresses the resulting file using zlib.
b) pipe(filename [options])
This driver sends messages to a named pipe. Available options:
owner(name), group(name), perm(mask) - Equals global options.
template(string) - Syslog-ng writes the string in the file. You can use the MACROS in
the string.
c) unix-stream(filename) and unix-dgram(filename)
This driver sends messages to a UNIX socket in either SOCKET_STREAM or
SOCK_DGRAM mode.
d) udp("<ip address>" port(number);) and tcp("<ip address>" port(number);)
This driver sends messages to another host (ip address/port) using either UDP or TCP pro-
tocol.
e) usertty(<username>)
This driver writes messages to the terminal of a logged-in username.