Download and grab one version which has too tar files, one is lib called eventlog, another one is syslog.
compile and install eventlog lib which is required by syslog-ng,
once done, you can find the bit under /usr/local/share/pkgconfig
now export the path to the variable, PKG_CONFIG_PATH and configure syslog
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
otherwise you get error when you configure the syslog,
then ./configure && make && make install
you can run /usr/local/sbin/syslong-ng –V to show the version information.
By default, syslog-ng.conf is located under /usr/share/etc
then change the conf file as the following, we will parse two sources one is from file, another from the syslog client. we will use nc as the testing client,
@version: 3.3 destination(f_local); |
touch and put some words in the input file, you can tell the message was dumped to the destination.
test some stuff using nc,
1 comment:
for example if i want forward the log to kiwisyslog server, the instructions on syslog-ng must be the same like you did?
Post a Comment