LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Closed Thread
  Search this Thread
Old 04-02-2015, 03:01 AM   #1
masterross
Member
 
Registered: Nov 2005
Distribution: CentOS 7.x
Posts: 107

Rep: Reputation: 17
Thumbs down CentOS 7 and logrotate


Hi guys!

This new version really makes me crazy!
Does anyone know how to setup logrotate to act as old one?
Because now the logs are rotated with date on the end.


Quote:
-rw-r--r-- 1 root root 0 Apr 2 03:09 forum-access_log
-rw-r--r-- 1 root root 1530355357 Mar 31 11:35 forum-access_log-20150328
-rw-r--r-- 1 root root 512394221 Apr 1 17:32 forum-access_log-20150401
-rw-r--r-- 1 root root 212358532 Apr 2 10:59 forum-access_log-20150402
 
Old 04-02-2015, 03:28 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Check logrotate.conf or the definitions for the logs in logrotate.d and see if "dateext" is mentioned.
 
Old 04-02-2015, 03:34 AM   #3
masterross
Member
 
Registered: Nov 2005
Distribution: CentOS 7.x
Posts: 107

Original Poster
Rep: Reputation: 17
Hi,

Thx mate!

I looked into it before but didnt see it
It's strange because in my other server still there is dateext but the logs are with .1,2,3.. on the end.

Last edited by masterross; 04-02-2015 at 03:39 AM.
 
Old 04-08-2015, 01:08 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by masterross View Post
Hi guys!

This new version really makes me crazy!
Does anyone know how to setup logrotate to act as old one?
Because now the logs are rotated with date on the end.
This is a dupliate thread of https://www.linuxquestions.org/quest...-a-4175538263/. Please do not do that again.
 
  


Closed Thread



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need somehelp with logrotate on centos os !!1 dr.x Linux - Server 5 11-16-2013 12:20 PM
Using Logrotate ckiran04 Linux - Server 1 02-04-2012 12:37 AM
[SOLVED] logrotate or logrotate.conf; problems with sftp slufoot80 Linux - Server 1 11-05-2011 07:50 AM
About logrotate satimis *BSD 1 05-27-2007 01:08 PM
Logrotate Help! MaverickApollo Linux - Software 3 02-19-2004 12:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

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