LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   logging external messages with syslogd (https://www.linuxquestions.org/questions/linux-networking-3/logging-external-messages-with-syslogd-29408/)

slawomir 09-02-2002 08:17 AM

logging external messages with syslogd
 
Salute!
I try to set up syslogd on my linuxbox, so i could collect messages generated by my router.
The router is set up to sent all messages to the IP 192.168.0.84 (which is the linuxbox running debian potato).
I edited the /etc/init.d/sysklogd script and inserted the "-r" option to enable external logging. Now all messages from the router are written into /var/log/syslog.

instead of that i would like to have this:
- all messages from the router should be written into /var/log/router/creation date.log
- for each day the log file should be saved into a separate file with the date of its creation.

I have read the manual page from syslogd, but it was not helpful to me.
Is somebody out there who could give me some advice how i can modify the /etc/syslog.conf ?

Thank you in advance.

Slawomir

sarin 09-02-2002 10:29 AM

I don't know how you do it using syslog. But I think you can run a cron job that will create a file `date` and then link your syslog default file to that. I have never tried this. But I hope it should work.
--Sarin

slawomir 09-03-2002 08:07 AM

still need help
 
Thank you for your answer Sarin.
The cronjob thing you have mentioned is shurly a part of what i should do
but at a later point of time. At first i would like to set up the syslogd
on the linuxbox, so it would write down everything it gets from the router.

My question is:
Which entry should i make in the syslog.conf to catch
all log files the router is sending to the linuxbox.
I have no idea how such line could look like.
I tried this, but with bad result:

192.168.0.1.* /var/log/external/router.log

syslogd has created "router.log" and has put some entries in it
but this are not the expected entries 8-|

Any prepositions?

Thank to all of you once again.

Slawomir

peter_robb 09-04-2002 04:26 AM

Have a look at 'syslog-ng' at www.balabit.hu

It has these options added.

Regards,
Peter


All times are GMT -5. The time now is 04:46 AM.