BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 3rd, 2004, 06:31 PM
lupus lupus is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 8 lupus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 20 m 47 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old February 4th, 2004, 01:13 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,966 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 49 m 46 sec
Reputation Power: 186
"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.

Reply With Quote
  #3  
Old February 9th, 2004, 10:38 PM
lupus lupus is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 8 lupus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 20 m 47 sec
Reputation Power: 0
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.

Reply With Quote
  #4  
Old June 3rd, 2004, 08:52 AM
stevengs stevengs is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Germany
Posts: 394 stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 4 h 36 m 25 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
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

Reply With Quote
  #5  
Old June 15th, 2004, 06:45 PM
stevengs stevengs is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Germany
Posts: 394 stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 4 h 36 m 25 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
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

Reply With Quote
  #6  
Old June 16th, 2004, 06:42 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,966 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 49 m 46 sec
Reputation Power: 186
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:
voyager# tail /var/log/enterprise
Jun 16 12:04:42 voyager syslogd 1.4.1#10: restart (remote reception).
voyager#


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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Remote syslog question router to freebsd


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek