Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

parse logs with multiple variables

0 views
Skip to first unread message

jlo

unread,
Nov 16, 2009, 1:58:03 PM11/16/09
to

i am trying to parse log files (text files) by searching multiple
variables and i cant seem to tie them all together through regex or
pipelining properly.
here are all the things i am trying to parse through:
- log date entry- i want to only accept entries between certain hours
of the day (i.e - 9am to 5pm (17:00:00)
- if between those hours then i want search for a keyword and output
all lines with both these positive conditions of hour and keyword to a
text file then...
- count all entries per hour and output seperate hour count
- count all entries per day and out day count.

is this possible :)


--
jlo

PaulChavez

unread,
Nov 18, 2009, 12:18:02 PM11/18/09
to
What's the format of your log file?


"jlo" wrote:

> .
>

0 new messages