LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 01:53 PM   #1
indraindrajit71
LQ Newbie
 
Registered: Sep 2013
Posts: 9

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 06:44 AM.
 
Old 07-16-2014, 02:03 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
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, 02:22 PM   #3
indraindrajit71
LQ Newbie
 
Registered: Sep 2013
Posts: 9

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 06:44 AM.
 
Old 07-16-2014, 02:28 PM   #4
indraindrajit71
LQ Newbie
 
Registered: Sep 2013
Posts: 9

Original Poster
Rep: Reputation: Disabled
Please clarify.

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

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


All times are GMT -5. The time now is 12:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration