Logrotate every 15days


 
Thread Tools Search this Thread
Operating Systems Linux Logrotate every 15days
# 1  
Old 08-16-2011
Logrotate every 15days

Hi all,

I have been asked to configure logrotate for a perticular log file for every 15 days. I do not find options other than weekly or monthly.Need you expertise on the sameSmilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Logrotate - /etc/logrotate.conf does't exist

Hi Admins. I have installed logrotate rpm on Aix 6.1. After the installation of rpm, I don't find /etc/logrotate.conf file and /etc/logrotate.d dir . The config file is located in /opt/freeware/etc/logrotate.conf. When I ran logrotate -v /opt/freeware/etc/logrotate.conf I get below... (2 Replies)
Discussion started by: snchaudhari2
2 Replies

2. Shell Programming and Scripting

Logrotate - I am not able to rotate files using logrotate

I have written script which is working in Home directory perfectly and also compressing log files and rotating correctly. But, when i try to run script for /var/log/ i am able to get compressed log files but not able to get rotation of compressed log files. Please suggest. I am using below command... (5 Replies)
Discussion started by: VSom007
5 Replies

3. Shell Programming and Scripting

AIX: Find a process older than 15days

Hi All, My application has specific processes when the developers start using respective GUI . I would like to find related process on server side that is older than 15 days for my application. I am using AIX 6.0. Could you please help with the command on how to find the older process? ... (5 Replies)
Discussion started by: chandu123
5 Replies

4. SuSE

Which logs to logrotate?

Hi all We've had new servers coming in and one of the requirement was to keep logs for up to 8 months. I know logrotate can do the job, but by default (on Suse Enterprise10, 11) we have these logs in /etc/logrotate.d dir as default logs which are rotated: -rw-r--r-- 1 root root 140 Jul... (0 Replies)
Discussion started by: hedkandi
0 Replies

5. UNIX for Dummies Questions & Answers

How to test logrotate?

I want to test whether logrotate will rotate my log file or not? (1 Reply)
Discussion started by: proactiveaditya
1 Replies

6. Linux

LogRotate

Hi I am trying to rotate specific log by using logrotate function in unix I have made following entry in the /etc/logrotate.conf file /var/log/testlog/debug_log { daily rotate 7 create compress } But only issue is that my other logs like /var/log/messages,... (2 Replies)
Discussion started by: SiddhV
2 Replies

7. UNIX for Advanced & Expert Users

logrotate with /etc/logrotate.conf file

Hi there, I want to rotate the logfiles which are located in /var/log/jboss/tomcat* so I have created a file named as 'tomat' in /etc/logrotate.d/tomcat with the following content. # cat /etc/logrotate.d/tomcat /var/log/jboss/tomcat_access_log*.log { daily nocreate ... (2 Replies)
Discussion started by: skmdu
2 Replies

8. Red Hat

Problem seen with logrotate

Hi all, I have configured logrotate to logorotate every 12 hour. The configurations are as follows. /etc/cron.d/config ------------------------- SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO="" HOME=/root 0 */12 * * * root logrotate /etc/logrotate.d/test ... (1 Reply)
Discussion started by: rsravi74
1 Replies

9. UNIX for Advanced & Expert Users

logrotate question

I am getting this system message: /etc/cron.daily/logrotate: error: rsync:7 unknown option 'endscript' -- ignoring line I don't find anything related to rsync in the logrotate.conf file, so I am unsure as to how to resolve this and stop this message. Thanks. (1 Reply)
Discussion started by: manouche
1 Replies

10. Post Here to Contact Site Administrators and Moderators

How to remove 15days back old files

Hi Experts, I want to delete the log files which is created 15 days back. 1st I want to view the files and later I want to delete viewed files I have tried with following command but its not working. find . -name '*.log' -mtime +15 -exec ls -ltr {} \; This is showing the list which shows... (2 Replies)
Discussion started by: vidya2006
2 Replies
Login or Register to Ask a Question
LR_CRON.IN(1)						  LogReport's Lire Documentation					     LR_CRON.IN(1)

NAME
lr_cron - run the perodical jobs configured in a DlfStore. SYNOPSIS
lr_cron period store DESCRIPTION
lr_cron is designed to be called in a crontab(5) entry. period should be "hourly", "daily", "weekly", "monthly" or "yearly". store should be the full path name of the DLF Store. lire(1) should be used to configure periodical jobs in the store. To run jobs as scheduled by lire(1), you will need to setup cron jobs. For each schedule you use, you should configure a cron job to be executed according to that period. Here is a crontab(5) entry that will make sure that all possible schedules are supported in the /home/flacoste/myStore DLF store: 05 * * * * lr_run lr_cron hourly /home/flacoste/myStore 15 01 * * * lr_run lr_cron daily /home/flacoste/myStore 15 02 * * 02 lr_run lr_cron weekly /home/flacoste/myStore 15 03 01 * * lr_run lr_cron monthly /home/flacoste/myStore 15 04 01 01 * lr_run lr_cron yearly /home/flacoste/myStore . SEE ALSO
lire(1) AUTHOR
Francis J. Lacoste <flacoste@logreport.org> VERSION
$Id: lr_cron.in,v 1.37 2006/07/23 13:16:32 vanbaal Exp $ COPYRIGHT
Copyright (C) 2004 Stichting LogReport Foundation LogReport@LogReport.org This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html. Lire 2.1.1 2006-07-23 LR_CRON.IN(1)