javier rojas | 1 Aug 20:19 2005
Picon

syslo-ng to mysql and to plaintext file

hello,

i've configure successfuly the syslog-ng server to save logs on mysql 4.0 and i would like it to store the logs (just for a test) on a text file (example.txt), so i was searching aroun and found that i should add the followin line to syslog-ng.conf:

destination file_text{ file("/var/log/example.txt"); };

i don't want to mess anything and i was wondering if it's ok or if anybody has set this before, i don't want it to stop saving it on mysql i just want syslog-ng to save in both (mysql and example.txt) at the same time...

thanx for the help...

--
Ciao,Javier
linux user #393724

_______________________________________________
syslog-ng maillist  -  syslog-ng <at> lists.balabit.hu
https://lists.balabit.hu/mailman/listinfo/syslog-ng
Frequently asked questions at http://www.campin.net/syslog-ng/faq.html

sawall | 1 Aug 20:26 2005
Picon

Re: syslo-ng to mysql and to plaintext file

Just set up the destination as you described below and then set up another log rule, assuming you're going to use the same source and filter.

then just add

log { source(src); filter(filter_1); destination(file_text); };

you can really have as many "log" entries as you want.  i write to several different files.

hope that helps.

chris


On 8/1/05, javier rojas <javier.rojasr <at> gmail.com> wrote:
hello,

i've configure successfuly the syslog-ng server to save logs on mysql 4.0 and i would like it to store the logs (just for a test) on a text file (example.txt), so i was searching aroun and found that i should add the followin line to syslog-ng.conf:

destination file_text{ file("/var/log/example.txt"); };

i don't want to mess anything and i was wondering if it's ok or if anybody has set this before, i don't want it to stop saving it on mysql i just want syslog-ng to save in both (mysql and example.txt) at the same time...

thanx for the help...

--
Ciao,Javier
linux user #393724
_______________________________________________
syslog-ng maillist  -  syslog-ng <at> lists.balabit.hu
https://lists.balabit.hu/mailman/listinfo/syslog-ng
Frequently asked questions at http://www.campin.net/syslog-ng/faq.html




_______________________________________________
syslog-ng maillist  -  syslog-ng <at> lists.balabit.hu
https://lists.balabit.hu/mailman/listinfo/syslog-ng
Frequently asked questions at http://www.campin.net/syslog-ng/faq.html


Gmane