Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-15-2008, 12:33 PM   #1
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, 01:17 PM   #2
Senior Member
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

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


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 12:36 PM
syslog does not display empty log files Tom Douglas Linux - Server 3 05-03-2008 02:20 PM
Bash script to put log files into single file and email DragonM15 Programming 13 11-08-2007 04:27 AM
howto network syslog with multiple log files mcalizo Red Hat 2 05-27-2005 07:58 AM
Syslog server can't open log files >500mb mikeyt_333 Linux - General 2 01-11-2005 12:32 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration