LinuxQuestions.org
Review your favorite Linux distribution.
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 07-16-2014, 12:53 PM   #1
indraindrajit71
LQ Newbie
 
Registered: Sep 2013
Posts: 19

Rep: Reputation: Disabled
logrotate not working as per rules


Please suggest if I had missed anything.



Thanks

Last edited by indraindrajit71; 07-17-2014 at 05:44 AM.
 
Old 07-16-2014, 01:03 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Your eservice details say that those rules apply to files matching:
Code:
/home/indra/log/*.log
These files:
Code:
*log.YY-MM-DD
do not match that pattern, so they are not being acted on by that rule.
 
1 members found this post helpful.
Old 07-16-2014, 01:22 PM   #3
indraindrajit71
LQ Newbie
 
Registered: Sep 2013
Posts: 19

Original Poster
Rep: Reputation: Disabled
So if I am not wrong than find command should work on those files.

Last edited by indraindrajit71; 07-17-2014 at 05:44 AM.
 
Old 07-16-2014, 01:28 PM   #4
indraindrajit71
LQ Newbie
 
Registered: Sep 2013
Posts: 19

Original Poster
Rep: Reputation: Disabled
Please clarify.

Last edited by indraindrajit71; 07-17-2014 at 05:44 AM.
 
Old 07-16-2014, 01:59 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
My apologies, I didn't read close enough to see that you had "*.log*" in your find command. I'm afraid I'm not experienced enough with logrotate to answer your question then.
 
  


Reply


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
Logrotate not working as desired BlueKayak Linux - General 3 05-12-2014 03:28 PM
Logrotate causes rsyslogd to stop working after log rotation. Please help! linuxr00lz2013 Linux - Newbie 1 09-19-2013 05:56 AM
[SOLVED] Logrotate stopped working slufoot80 Linux - Newbie 4 03-05-2013 10:07 AM
Logrotate not working ankitjainfsl Linux - Newbie 3 09-10-2012 02:29 AM
logrotate not working as expected linux833 Linux - General 2 08-06-2012 02:05 AM

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

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