Dynamic lookup by syslog for remote logging

This is a discussion on Dynamic lookup by syslog for remote logging within the Linux Networking forums, part of the Linux Forums category; Hello, I am trying to configure syslog for remote logging on two linux boxes. Everything works fine if I add ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-05-2005
agarwalpiyush@gmail.com
 
Posts: n/a
Default Dynamic lookup by syslog for remote logging

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
  #2 (permalink)  
Old 12-06-2005
David Efflandt
 
Posts: n/a
Default Re: Dynamic lookup by syslog for remote logging

On 5 Dec 2005, agarwalpiyush@gmail.com <agarwalpiyush@gmail.com> 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 Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:07 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0