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 05-04-2015, 05:46 AM   #1
mr.simo
Member
 
Registered: Feb 2010
Posts: 78

Rep: Reputation: 0
syslog, redirect logging on multiple files with custom name


Hi all,

I would need to store logging files such as /var/log/messages, /var/log/kern.log (and maybe some more) also into a custom folder, not only into the standard folder /var/log/, and to not deleted the files into this custom folder for at least one or 2 weeks.I would be perfect If I could rename each file depending on the date (or basic enumeration), which is the most important.

I am working on an Angstrom distribution, and I tried to modify the configuration file /etc/syslog-ng.conf.

The 'problem' is that If I define a new output file (e.g. for the kern facility), the /var/log/kern.log file is not used any more, so I cannot store the log on two different files at the same time. And I cannot rename automatically the files depending on the date from the /etc/syslog-ng.conf file.

There is a utility useful to make this work easier ?
Or there is a way to accomplish this from /etc/syslog-ng.conf and I missed it ?

Making a copy of the log files is a bad idea, because if the system will be powered off, I would loose many log data.

I am in doubt..

Thank you in advance for your suggestions.
simon

Last edited by mr.simo; 05-04-2015 at 05:46 AM. Reason: title
 
Old 05-04-2015, 06:29 AM   #2
mr.simo
Member
 
Registered: Feb 2010
Posts: 78

Original Poster
Rep: Reputation: 0
I missed to write that I dont have logrotate on my system.
 
  


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
File output redirection - possible to redirect stream to multiple files? EnderX Linux - Newbie 5 12-07-2010 10:39 PM
[SOLVED] How to redirect the output to multiple files without displaying it to the screen? ionrivera Programming 3 10-26-2010 01:04 AM
syslog-ng -> syslog-ng logging, how to troubleshoot sir-lancealot Linux - Server 1 01-24-2009 06:07 AM
howto network syslog with multiple log files mcalizo Red Hat 2 05-27-2005 06:58 AM
logging and reporting on multiple firewalls to a syslog server cyph3r7 Linux - Security 2 04-13-2004 04:16 PM

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

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