LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-19-2007, 06:56 PM   #1
rcainc
Member
 
Registered: Feb 2005
Posts: 36

Rep: Reputation: 15
syslog and hostname


Hi all,

I have a little problem with the syslog configuration.
I configure it to send all log to a log server.
Everything work fine but syslog send the ip has hostname, and i would rather syslog to send the hostname.
What should i do ?
Thank you for reading.
 
Old 08-19-2007, 07:08 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Which part of the configuration are you specifically referring to?

On the client side, you should be able to specify the log server in /etc/syslog.conf as:

Code:
*.*        @hostname
 
Old 08-19-2007, 07:56 PM   #3
rcainc
Member
 
Registered: Feb 2005
Posts: 36

Original Poster
Rep: Reputation: 15
Yes,
i did that and that work well, but in the server (Kiwi Syslog Daemon),
the hostname of the sender is the ip not the hostname.
 
  


Reply



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
forwarding syslog messages overwrites original hostname gfizzy Linux - Software 2 10-30-2009 09:24 AM
Regarding syslog arunachalam Linux - General 7 04-01-2007 03:14 AM
LXer: Centralized Syslog Server Using syslog-NG LXer Syndicated Linux News 0 04-28-2006 06:21 PM
syslog sorting by hostname the-chains Linux - Software 2 11-10-2004 06:26 AM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:09 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration