LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-15-2008, 11:33 AM   #1
fcompagnari
LQ Newbie
 
Registered: Aug 2008
Posts: 1

Rep: Reputation: 0
Post Syslog-NG Format - Files or single log


I am an administrator of a department and would like to have a single syslog file or rotated files rather than the many device files that syslog-NG creates as it is installed today. I feel there is a benefit in a single rolling file rather than having to "bring together" the multiple files, and I feel that it would be better received by auditors, security, etc. if I didn't have to "create a file" from multiple files. Can someone please provide some information on this topic, and can syslog-ng (which everyone seems to like) produce a single output file or should I use another syslog server application. Please advise.
 
Old 08-15-2008, 12:17 PM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,684

Rep: Reputation: 54
That is all configurable.
I have two destinations:
Code:
destination messages { file("/var/log/messages"); };
destination console_all { file("/dev/tty12"); };
and two matching log statements:
Code:
log { source(src); destination(messages); };
log { source(src); destination(console_all); };
It all goes to /var/log/messages and also to tty12 (live-view)
 
  


Reply

Tags
syslog, syslogd, syslogng


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
I need help getting syslog to log remotely, this is just the regular syslog. abefroman Linux - Software 2 06-05-2008 11:36 AM
syslog does not display empty log files Tom Douglas Linux - Server 3 05-03-2008 01:20 PM
Bash script to put log files into single file and email DragonM15 Programming 13 11-08-2007 03:27 AM
howto network syslog with multiple log files mcalizo Red Hat 2 05-27-2005 06:58 AM
Syslog server can't open log files >500mb mikeyt_333 Linux - General 2 01-11-2005 11:32 AM


All times are GMT -5. The time now is 12:49 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration