Networking Forums

Networking Forums > Computer Networking > Linux Networking > Dynamic lookup by syslog for remote logging

Reply
Thread Tools Display Modes

Dynamic lookup by syslog for remote logging

 
 
agarwalpiyush@gmail.com
Guest
Posts: n/a

 
      12-05-2005, 08:02 PM
Hello,
I am trying to configure syslog for remote logging on two linux boxes.
Everything works fine if I add the following line to /etc/hosts:

172.23.62.12 linux-box1.domain.com

and the syslog.conf reads:

*.emerg @linux-box1.domain.com

However, now I want the syslog process to lookup the address
dynamically instead of the hardcoded IP address in /etc/hosts.
Therefore, is there a way to:

Just use the /etc/syslog.conf with fully-qualified name as above and
have the syslog lookup the IP-address and do remote logging? (without
me inserting the IP-address in the /etc/hosts file?).

Perhaps, even a way to dynamically update entires in /etc/hosts would
be helpful as well.

Any pointers/advice deeply appreciated.

Thanks!

 
Reply With Quote
 
 
 
 
David Efflandt
Guest
Posts: n/a

 
      12-06-2005, 06:39 AM
On 5 Dec 2005, (E-Mail Removed) <(E-Mail Removed)> wrote:
> I am trying to configure syslog for remote logging on two linux boxes.
> Everything works fine if I add the following line to /etc/hosts:
>
> 172.23.62.12 linux-box1.domain.com
>
> and the syslog.conf reads:
>
> *.emerg @linux-box1.domain.com


I hope you are not really using "domain.com" because that is a registered
domain that can confuse the issue. If you do not have your own registered
domain to use for private IP's, or it is just an example, you should use a
truly bogus domain.

> However, now I want the syslog process to lookup the address
> dynamically instead of the hardcoded IP address in /etc/hosts.
> Therefore, is there a way to:
>
> Just use the /etc/syslog.conf with fully-qualified name as above and
> have the syslog lookup the IP-address and do remote logging? (without
> me inserting the IP-address in the /etc/hosts file?).


If this is for local private IP, why not do your own DNS with local
forward/reverse zones added? But that is easiest if LAN IP's are static.

> Perhaps, even a way to dynamically update entires in /etc/hosts would
> be helpful as well.


If it is a public IP, you could use a dynamic IP service (static name to
dynamic IP mapping). There are many, but I use no-ip.com, updated by
their client automatically from /etc/ppp/ip-up whenever pppoe connects.
I suppose you might be able to use dynamic DNS for private IP's from dhcp
related scripts. But better just to use static LAN IP's and your own DNS
for any local servers.

I use bind9 for local DNS and public caching. But the only remote syslog
I do is from my WAP to local Linux static IP.
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Syslog to Remote from 327W DRS.Usenet@sengsational.com Network Routers 0 02-18-2006 07:00 PM
Syslog parser wanted to replace Kiwi Syslog (win32) Jurgen.Turrekens@gmail.com Linux Networking 0 01-19-2006 01:08 PM
remote syslog without root =?ISO-8859-2?Q?Jacek_Pop=B3awski?= Linux Networking 1 12-20-2005 04:57 AM
remote syslog LHradowy Linux Networking 2 10-22-2004 05:51 AM
Remote syslog tibo Linux Networking 6 10-12-2004 01:17 AM



1 2 3 4 5 6 7 8 9 10 11