164
Administration
Some Examples of Defining Sources:
1) To read from a file:
source <identifier> {file(filename);};
Example to read messages from “/temp/file1” file:
unix-stream
(filename
[options])
and
unix-dgram
(filename
[options])
They open the given AF_UNIX socket, and start listening
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 simulta-
neously opened connections. Can be used only with
unix_stream. Default: 10.
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 parame-
ters. By default they 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 simulta-
neously opened connections. Default: 10.
file(filename)
Opens the specified file and reads messages.
pipe(filename)
Opens a named pipe with the specified name, and listens
for messages. (You'll need to create the pipe using mkfifo
command).
Table 5-2:
“Source Drivers” parameters (Syslog-ng configuration)
Option
Description
Содержание AlterPath ACS
Страница 16: ...xvi Table of Contents...
Страница 29: ...13 This page has been left intentionally blank...
Страница 30: ...14 Preface...
Страница 68: ...52 Device Access...
Страница 86: ...70 Authentication Step 5 Saving changes To save the configuration run the command saveconf...
Страница 96: ...80 Authentication Save the configuration to flash 2 cli config savetoflash...
Страница 114: ...98 Authentication...
Страница 204: ...188 Administration To exit the CLI mode and return to ACS s shell issue the command cli quit...
Страница 268: ...252 Power Management with AlterPath PM Integration...
Страница 304: ...288 PCMCIA Cards Integration...
Страница 338: ...322 Profile Configuration...
Страница 364: ...348 Additional Features and Applications...
Страница 376: ...360 Appendix A New User Background Information...
Страница 406: ...390 Appendix C Cabling and Hardware Information This page has been left intentionally blank...
Страница 418: ...402 List of Tables...
Страница 420: ...404 List of Figures...