|
|
|
| ||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Remote syslog question router to freebsd
Hi all,
I am trying to get my snapgear router to log to a Freebsd box to centralise my log files. I have been able to get this to work, but the router logs end up in the /var/log/messages.log file on the BSD box. I would like to separate the router logs to another file ie /var/log/router.log, but i can't work out how to do this in my syslog.conf file ......... alas this is where i am getting a bit stuck. If anyone could shed some light on this that would be great Cheers |
|
#2
|
|||
|
|||
|
"man syslogd.conf" is your friend...
Code:
+myhostname ...(contents of old syslog.conf)... +router *.* /var/log/router.log hth, M.
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#3
|
|||
|
|||
|
Thanks M .....
That worked a treat ...... !! I did have a little problem using the -a flag with syslogd. When uses i was not getting anything logged from my router, i used it without and it worked. Will now just look at trying to secure it a little. Thanks again. |
|
#4
|
|||
|
|||
|
FreeBSD Remote Logging (router -> syslogd)
Dear Lupus (or M.Hirsch if you've the time),
I am having the same difficulty with remote logging from a NetGear RT314. I have tried several different approaches, including the -a option from the syslogd manpage. My syslog.conf now holds the +hostname, but still is not writing to the file (file privs 666). I was unable to glean the exact form that the hostname must follow. I have a simple BIND setup resolving for my private network, so I just used the hostnames. Can you tell me what combination of settings worked for you? Sincerely, Steven __________________ Who will rid me of this turbulent priest? –King Richard, Black Adder |
|
#5
|
|||
|
|||
|
Is anyone still around that was able to get this type of remote logging to work? Maybe under another flavor of Unix?
Mr. Hirsch? Mr. Lupus -Steven __________________ Am I jumping the gun Baldrick, or are the words "I have a cunning plan." marching with ill deserved confidence in the direction of this conversation? –Edmund Black Adder |
|
#6
|
|||
|
|||
|
Hello Steven!
As I told you via PM already, I don't run such a setup currently. But to "complete" this thread, I'll setup a test environment. Ok, here we go: My server: FreeBSD 4.8-Release-p20 "enterprise.home" My workstation: Debian Sarge "voyager.home" 1. Server: We edit /etc/syslog.conf. We add before the very first line: Code:
*.* @voyager.home Then we restart syslogd: # killall -HUP syslogd 2. Client: Here we have to configure two things: a) The syslog daemon must accept messages from the network (a startup parameter). Edit /etc/init.d/sysklogd: Code:
# Options for start/restart the daemons # For remote UDP logging use SYSLOGD="-r" # SYSLOGD="" We change it as told to: SYSLOGD="-r" b) The messages shall be written to /var/log/enterprise We edit /etc/syslog.conf and add this to the end: Code:
+enterprise *.* /var/log/enterprise And then we restart the daemon: /etc/init.d/sysklogd restart Quote:
Have fun! ![]() (If anybody cares: A German translation is here on my site: http://www.vrdevelopers.de/blog/117/40/s.html) M. Last edited by M.Hirsch : June 16th, 2004 at 07:05 AM. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > Remote syslog question router to freebsd |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|