LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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,687

Rep: Reputation: 55
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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