LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-10-2008, 10:17 PM   #1
noir911
Member
 
Registered: Apr 2004
Posts: 682

Rep: Reputation: Disabled
[syslog-ng] logging remote server by IP address


I am logging some remote server with syslog-ng. However, the log files are coming as /var/log/ip-address and not /var/log/host-name. Is there's anything I can do to change this? I have the following in my syslogng.conf file -

long_hostnames (off);
use_dns (no);
use_fqdn (no);
create_dirs (no);
keep_hostname (yes);

Thanks for any help.
 
Old 02-11-2008, 02:51 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you want to use the resolved dns name instead of the ip address? reckon that that "use_dns(no)" option might have something to do with that? ;-) note of course that you do need dns working, syslog doesn't have any implicit notion of hostnames within the protocol.
 
Old 02-11-2008, 06:15 PM   #3
noir911
Member
 
Registered: Apr 2004
Posts: 682

Original Poster
Rep: Reputation: Disabled
Thanks! That helped.

Another question: if it fails to resolve the hostname of a client, will it log by ip address or will it not log that client at all?

Thanka, again.
 
Old 02-12-2008, 03:25 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
oh it'll always log one way or another...
 
Old 06-22-2018, 08:01 AM   #5
Majed17
Member
 
Registered: Jul 2011
Posts: 102

Rep: Reputation: Disabled
I had a problem that host would appear as named: ":" and the only thing that solved that was:
drum roll...
conf t
service sequence-numbers
(cisco)
 
  


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
Remote Syslog-np server Cheza Linux - Server 2 11-07-2007 07:33 PM
Syslog to a Remote Server Antonius_Block Linux - Software 1 05-06-2006 03:29 AM
logging to a remote syslog server is dropping packets draeician73 Linux - Security 1 10-20-2004 06:19 PM
logging and reporting on multiple firewalls to a syslog server cyph3r7 Linux - Security 2 04-13-2004 04:16 PM
SYSLOG - logging to Remote Host dvong3 Linux - Networking 4 09-24-2002 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:36 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