LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   extract from nginx log time interval (https://www.linuxquestions.org/questions/linux-newbie-8/extract-from-nginx-log-time-interval-927301/)

mad_penguin 02-02-2012 08:56 PM

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.

mad_penguin 02-02-2012 09:17 PM

BTW, for those who don't know, nginx access log is exactly like apache log.

chrism01 02-02-2012 11:35 PM

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.


All times are GMT -5. The time now is 06:18 AM.