LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-05-2006, 10:56 AM   #1
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Rep: Reputation: 30
syslog-ng, network logging & hostnames


I've got a syslog-ng central logging server on gentoo with many clients of varying distros running either syslog-ng or classic syslogd. I've got the output directory as:
Code:
destination d_hosts { file("/var/log/NETWORK/$HOST/$FACILITY-$YEAR-$MONTH-$DAY"); };
but I've notived that some machines which have more than one name have created two separate directories under /var/log/NETWORK.

I want to know how to force the central server to use only their hostname, not the names by which some applications may consider themselves. I've been looking at the FAQ at balabit.com, in particular the global options "use_dns" and "keep_hostnames" but these seem to only give the opions to either use the hostnames from the logs which vary (I believe it's these that's causing the problems), or use dns which can cause a possible DoS if the host isn't resolvable or the dns server reboots or whatever...

Any suggestions?
 
Old 05-06-2006, 10:32 AM   #2
mackdav
Member
 
Registered: Feb 2005
Distribution: RHEL, CentOS
Posts: 113

Rep: Reputation: 16
I use syslog-ng and have seen $HOST expand to things like NETWORK or whatever. The problem is that the originating application on the originating host is sending badly-formed messages to it's local syslog, and really there isn't much you can do about that on the central loghost -- the messages were broke before they got there.
 
  


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
Logging/syslog s0n|k Linux - Newbie 2 03-13-2006 07:36 PM
Logging firewall with syslog-ng? RecoilUK Linux - Security 1 08-06-2005 04:28 PM
syslog running but not logging tantric Linux - Security 1 10-15-2003 07:24 AM
logging information into syslog prisam Linux - Security 1 08-05-2003 09:58 AM
Kernel logging failure <<Syslog>> RKris Linux - General 1 09-18-2002 06:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:29 PM.

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