LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-10-2014, 03:34 AM   #1
bayanaa
LQ Newbie
 
Registered: May 2012
Posts: 13

Rep: Reputation: Disabled
syslog-ng rotation


Hi all,

I have installed syslog-ng on debian 7

I need to rotate log file which is "messages" like this

Click image for larger version

Name:	1122.gif
Views:	39
Size:	8.2 KB
ID:	15881

on daily basis, compress it and adding history extension for each daily rotated file.

where to put configurations that does that:

/etc/logrotate.d/syslog-ng or somewhere else.

thanks in advanced
 
Old 07-10-2014, 04:00 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
I woudln't suggest using date suffixes on your files, it makes them unique and untrackable by logrotate. just rotate them with general purpose logrotate names as you see fit, this really has nothign at all to do with syslog-ng, as there is no rotation needed /possible if you want to write to unique files, you'd just use a cron job to delete old files matching a certain pattern.
 
  


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
logrotate and syslog rotation issues rhel6 anon079 Linux - Software 5 05-28-2016 01:29 AM
Syslog-ng messages.log log rotation Iyyappan Linux - Server 3 09-16-2012 11:10 AM
How to achieve syslog rotation in red hat linux? shekhar_puttur Red Hat 1 01-25-2011 08:12 AM
How to change Debian log rotation of syslog and daemon.log onmountain Linux - Newbie 2 07-31-2008 02:27 AM
LXer: Centralized Syslog Server Using syslog-NG LXer Syndicated Linux News 0 04-28-2006 06:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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