LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-02-2002, 08:17 AM   #1
slawomir
LQ Newbie
 
Registered: Sep 2002
Posts: 2

Rep: Reputation: 0
Question 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
 
Old 09-02-2002, 10:29 AM   #2
sarin
Member
 
Registered: May 2001
Location: India, Kerala, Thrissur
Distribution: FC 7-10
Posts: 354
Blog Entries: 2

Rep: Reputation: 34
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
 
Old 09-03-2002, 08:07 AM   #3
slawomir
LQ Newbie
 
Registered: Sep 2002
Posts: 2

Original Poster
Rep: Reputation: 0
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
 
Old 09-04-2002, 04:26 AM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
Have a look at 'syslog-ng' at www.balabit.hu

It has these options added.

Regards,
Peter
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Logging Console Boot Messages candyman123 Linux - General 5 06-19-2005 02:38 PM
logging bootup messages to textfile? cast55 Debian 2 02-19-2005 05:56 PM
console logging messages srns Red Hat 2 09-13-2004 04:18 PM
syslogd logging questsion plan9 Slackware 2 09-03-2004 04:23 PM
Logging kernel messages ugenn Linux - Software 8 01-04-2003 06:11 AM


All times are GMT -5. The time now is 06:56 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration