Sponsored Content
Full Discussion: Rotate logs every 1 hour
Top Forums UNIX for Dummies Questions & Answers Rotate logs every 1 hour Post 302464702 by arunpvp on Wednesday 20th of October 2010 07:28:13 PM
Old 10-20-2010
Rotate logs every 1 hour

Hello All,

I am learning unix and basically I want to rotate one of my application logs every 1 hour. I need to rotate that file every one hour. I looked in the forums and googled.. but couldn;t get proper information. Requesting you all to kindly guide me.

Our application is running on "Red Hat Enterprise Linux AS release 4 (Nahant Update 5)".

Thank you
A newbie
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

an hour less in 24 hour system

My program: __________________________________ #!/bin/ksh DAY=`date +%y%m%d` H=`date +%H` M=`date +%M` day=`date +%m/%d/%y` let h=$H-1 echo DAY $DAY echo H $H echo M $M echo day $day echo h $h _____________________________________ My result: (3 Replies)
Discussion started by: bobo
3 Replies

2. Shell Programming and Scripting

Perl script to rotate logs

I have a shell script that will gzip/tar/archive application logs that are over 20 days old which works just fine, but I would like to convert to a Perl script. Problem is, I'm a beginner with Perl and all attempts so far have failed. Basicaly I have a log dir /app/logs that contains several... (18 Replies)
Discussion started by: theninja
18 Replies

3. Shell Programming and Scripting

Grep yesterday logs from weblogic logs

Hi, I am trying to write a script which would go search and get the info from the logs based on yesterday timestamp and write yesterday logs in new file. The log file format is as follows: """"""""""""""""""""""""""... (3 Replies)
Discussion started by: harish.parker
3 Replies

4. Shell Programming and Scripting

Grep string from logs of last 1 hour on files of 2 different servers and calculate count

Hi, I am trying to grep a particular string from the files of 2 different servers without copying and calculate the total count of its occurence on both files. File structure is same on both servers and for reference as follows: 27-Aug-2010... (4 Replies)
Discussion started by: poweroflinux
4 Replies

5. Shell Programming and Scripting

How to convert 24 hour time to 12 hour timing?

Hi friends, I want to convert 24 hour timing to 12 hour please help me... my data file looks like this.. 13-Nov-2011 13:27:36 15.32044 72.68502 13-Nov-2011 12:08:31 15.31291 72.69807 16-Nov-2011 01:16:54 15.30844 72.74028 15-Nov-2011 20:09:25 15.35096 ... (13 Replies)
Discussion started by: nex_asp
13 Replies

6. UNIX for Dummies Questions & Answers

Scan logs for errors in the last hour only.

Hi there. Is there a way to scan a specific log file for errors that occurred in the last hour (time when script is run - 60 minutes)? I have a script that will change to a directory where the log files are kept and will then grep the files for defined strings, but I need to make sure that... (2 Replies)
Discussion started by: jimbojames
2 Replies

7. UNIX for Dummies Questions & Answers

Need script to rotate logs

I have few solaris-10 non global zones, where one application is writing some logs to /var/ovd/ConfigLogs. It keeps increasing all the time, as it is needed by application team as of now. I want a small script, which I can configure in cronjob, which should : - Run every Saturday 10 PM - Copy... (5 Replies)
Discussion started by: solaris_1977
5 Replies

8. UNIX for Dummies Questions & Answers

Logs do not rotate

My problem: Both access and error logs do not rotate any more and get really large. They are located here: /srv/www/+vHost name here+/logs/ Configuration seems to be here: /etc/logrotate.conf => looks OK, including "size 10M" to avoid large files (/etc/logrotate.d => is empty) manually... (4 Replies)
Discussion started by: floko
4 Replies

9. Shell Programming and Scripting

If I ran perl script again,old logs should move with today date and new logs should generate.

Appreciate help for the below issue. Im using below code.....I dont want to attach the logs when I ran the perl twice...I just want to take backup with today date and generate new logs...What I need to do for the below scirpt.............. 1)if logs exist it should move the logs with extention... (1 Reply)
Discussion started by: Sanjeev G
1 Replies
ROTATE(1)						      General Commands Manual							 ROTATE(1)

NAME
rotate - Rotate, mirror, and transpose JPEG images (losslessly whenever possible) SYNOPSIS
rotate { options } file [ file ... ] DESCRIPTION
rotate is a convenience frontend to jpegtran, allowing JPEG images to be rotated, mirrored, or transposed in several ways. These opera- tions are conducted losslessly (i.e., no image recompression) and keep all EXIF metadata intact. OPTIONS
-f, -flip, --flip {horizontal | vertical} horizontal: Mirror image horizontally (left-right). vertical : Mirror image vertically (top-bottom). -r, -rotate, --rotate {90 | 180 | 270} 90 : Rotate image 90 degrees clockwise. 180: Rotate image 180 degrees. 270: Rotate image 270 degrees clockwise (or 90 ccw). -tp, -transpose, --transpose Transpose image (across UL-to-LR axis). -tv, -transverse, --transverse] Transverse transpose (across UR-to-LL axis). SEE ALSO
jpegtran(1) AUTHOR
rotate is distributed as a component of jigl, written by Jason Paul <jigl@xome.net>. Its project page is located at http://xome.net/projects/jigl/. This manual page was adapted from the program help text by Nicholas Breen <nbreen@ofb.net> for the Debian project (but may be used by oth- ers). October 8, 2006 ROTATE(1)
All times are GMT -4. The time now is 09:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy