How do i get only last 5 minute worth of data


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How do i get only last 5 minute worth of data
# 1  
Old 02-20-2009
How do i get only last 5 minute worth of data

I have a text file called 'tomcat_temp_out'.
I want to get only last 5 minute worth of data from this file and redirect those data into another fule.

Could you please help to work on this?
# 2  
Old 02-22-2009

What is the format of the file?

Do you have the GNU version of date?

# 3  
Old 02-23-2009
The format of the file is given below

Feb 20, 2009 12:56:18 AM org.apache.catalina.valves.RequestDumperValve invoke
INFO: method=POST
Feb 20, 2009 12:56:18 AM org.apache.catalina.valves.RequestDumperValve invoke
INFO: pathInfo=/SmartGridPartnerMeterReadsSoap
Feb 20, 2009 12:56:18 AM org.apache.catalina.valves.RequestDumperValve invoke
INFO: protocol=HTTP/1.1
Feb 20, 2009 12:56:18 AM org.apache.catalina.valves.RequestDumperValve invoke
INFO: queryString=null
Feb 20, 2009 12:56:18 AM org.apache.catalina.valves.RequestDumperValve invoke
INFO: remoteAddr=127.0.0.1
Feb 20, 2009 12:56:18 AM org.apache.catalina.valves.RequestDumperValve invoke
INFO: remoteHost=127.0.0.1
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. What is on Your Mind?

Are certifications worth it?

I have just been on RedHat SA 3 training course (4 days) and sat exams EX200 (RHCSA) and EX300 (RHCE) The daft thing was that politics meant I wasn't allowed to take courses SA 1 or 2. So I learnt about stuff I would never use (SELinux; iSCSI; NFS Kerberos encrypted with user specific access... (22 Replies)
Discussion started by: rbatte1
22 Replies

2. Programming

Is C worth the effort?

Hello guys, I have a little question. I think about learning c or c++ because im very interessted in low Level programming. And because i love Unix Too i thought C would be the better choice since Most it Done in c. Or should i learn c++? Because C++ has all this nice Features like oop and... (9 Replies)
Discussion started by: dryPants
9 Replies

3. Linux

Are /home partitions worth it?

I'm new to the Linux world and whilst I've been learning the ropes, I've read some conflicting opinions regarding the creation of separate partitions for /home and other directories during OS install. Some say that having these directories in separate partitions allows you to reinstall without... (12 Replies)
Discussion started by: maerlyngb
12 Replies

4. What is on Your Mind?

Is M.Sc (FOSS) worth doing?

Recently while reading an linux magazine I understood that FOSS (Free or open source software) is gaining momentum.. And in my home town there is an reputed university which offers M.Sc online program on FOSS. The course covers: INTRODUCTION TO COMPUTING, PHILOSOPHY AND PRACTICE OF FOSS,... (4 Replies)
Discussion started by: Arun_Linux
4 Replies

5. Shell Programming and Scripting

Extracting the last 10mins worth of data in a log file

Hi all, Hope someone here will be able to help me. Our system has some scripts that are run from a cron job every ten mins and is used to see how many error there are in that time frame. Problem is that in the scripts grep is used to find the data, but as the day goes on these log file grow to a... (7 Replies)
Discussion started by: Goldengreen
7 Replies

6. Shell Programming and Scripting

Take minute per minute from a log awk

Hi, I've been trying to develop a script that performs the parsing of a log every 1 minute and then generating some statistics. I'm fairly new to programming and this is why I come to ask if I can lend a hand. this is my log: xxxx 16/04/2012 17:00:52 - xxxx714 - E234 - Time= 119 ms.... (8 Replies)
Discussion started by: jockx
8 Replies

7. UNIX for Dummies Questions & Answers

What is this system worth?

So my family is cleaning out our house and my dad stumbled on a Unix system with Unigraphix installed on it, and he remembers that it was 1 of 6 computers in a set that he used at a tool and dye machine shop where he worked. He said that the computer by itself with the monitor was $20,000! I was... (8 Replies)
Discussion started by: NVOtosReborn
8 Replies

8. UNIX for Dummies Questions & Answers

Is Unix Worth it?

I have been wanting to get much deaper into the world of computers for quite some time. I know a lot of c++, and plenty of website programming, and decided that the next step should be Unix. But here's the thing - I know nothing about Unix. I installed it and everything, but it just seemed like... (3 Replies)
Discussion started by: GuyWithAPen
3 Replies

9. Shell Programming and Scripting

Java - is it worth learning?

I have the opportunituy of learning basics/intermediate jave for 600 Euro. Is this worth learning?? (4 Replies)
Discussion started by: frustrated1
4 Replies
Login or Register to Ask a Question