Forum Moderators: DixonJones

Message Too Old, No Replies

Creating a filtered subsection of a log

         

tedster

5:56 am on Jun 11, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've got this idea in my head that ought to be easily doable (or so it seems) but I can't wrap my head around a method.

There are times where I just want to look at raw logs - not a pre-sliced and diced analysis. What I'd like is a method to create a filtered log. Something that would give me raw text logs, but only include the entries that do (or don't) fit some criteria. Every other full line would be deleted completely.

I'd need to do this locally, starting from complete log files, rather than a server-side manipulation. Anyone have a suggestion?

jatar_k

6:03 am on Jun 11, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



regex?

you could script the output

mbauser2

9:45 am on Jun 11, 2002 (gmt 0)

10+ Year Member



I assume "locally" is a Windows box?

[google.com...]

"Real men use grep", as we used to say.

brotherhood of LAN

10:02 am on Jun 11, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I'm sure you advanced users have a better way ;)

I'd replace the spaces between each row of the log with a ";" in notepad and import it into access where you can query away/filter etc

Mardi_Gras

11:41 am on Jun 11, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



BOL - I use Excel for the same purpose - great filtering capabilities and pivot tables give you lots of ways to look at data. Excel has a wizard to help with the import.

I don't use Access enough to know if Excel has all the same capabilities but Excel does have a lot more database/analysis capablities than many realize.