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 02-02-2012, 09:56 PM   #1
mad_penguin
Member
 
Registered: Mar 2008
Posts: 69

Rep: Reputation: 15
extract from nginx log time interval


Hi Guys,

Does anyone know how can I easily cut down from an large nginx access log all records from 5:30 to 6:35 ?

I believe that some sed/awk would help.

Thank you.
 
Old 02-02-2012, 10:17 PM   #2
mad_penguin
Member
 
Registered: Mar 2008
Posts: 69

Original Poster
Rep: Reputation: 15
BTW, for those who don't know, nginx access log is exactly like apache log.
 
Old 02-03-2012, 12:35 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Easier if you show us part of YOUR file.
Note that Apache logs can be in any format, so we can't assume(!) the exact rec format.
 
  


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
Serial port data read time interval problem... rados Programming 11 11-01-2010 02:03 AM
How to perform command in time interval? your_shadow03 Linux - Newbie 2 06-16-2009 02:11 AM
Change my mac address in interval of time!! wanas Linux - Networking 8 03-27-2009 04:10 AM
Setting cronjob time interval to a small number mohtasham1983 Linux - General 4 09-18-2008 11:28 PM
Log netstat at interval DaHoe Linux - Newbie 4 11-06-2006 03:11 AM


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