#98577 - 2003-02-19 01:32 PM
Re: open, readline, close
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
To reduce the workload, use a command line utility to filter the log file before you read it in KiXtart.
Get hold of a Windows native version of "grep". This is a powerful pattern matching utility, and you can construct queries like:
code:
grep "www.bannedsite.url|anotherbannedsite.com|yetanotherbannedsite.com" PROXYLOG.TXT > FILTEREDLOG.TXT
I use "grep" a lot for extracting information from my proxy log files, looking for banned sites and suspect words. It is also useful for removing unwanted hits. For example, suppose I wanted to look for all occurences of the words "sex", "porn" and "xxx", but I was not interested in URLs which have the UK counties Sussex and Essex in them:
code:
grep -i "sex|porn|xxx" PROXYLOG.TXT | grep -i -v "essex|sussex" > FILTEREDLOG.TXT
The "-i" makes the search case insensitive, the "-v" means "lines which don't match"
There are many places to get hold of grep compiled for Windows - here is one site which has this and many other *nix tools: GnuWin32
|
|
Top
|
|
|
|
open, readline, close
|
pvds
|
2003-02-20 12:03 AM
|
Re: open, readline, close
|
Lonkero
|
2003-02-20 12:11 AM
|
Re: open, readline, close
|
pvds
|
2003-02-20 12:59 AM
|
Re: open, readline, close
|
MightyR1
|
2003-02-19 01:14 PM
|
Re: open, readline, close
|
pvds
|
2003-02-19 01:23 PM
|
Re: open, readline, close
|
Richard H.
|
2003-02-19 01:32 PM
|
Re: open, readline, close
|
MightyR1
|
2003-02-19 01:38 PM
|
Re: open, readline, close
|
Howard Bullock
|
2003-02-19 02:00 PM
|
Re: open, readline, close
|
Jochen
|
2003-02-19 02:10 PM
|
Re: open, readline, close
|
Howard Bullock
|
2003-02-19 02:25 PM
|
Re: open, readline, close
|
Richard H.
|
2003-02-19 02:44 PM
|
Re: open, readline, close
|
Crazy Eddie
|
2003-02-19 02:58 PM
|
Re: open, readline, close
|
pvds
|
2003-02-19 03:17 PM
|
Re: open, readline, close
|
pvds
|
2003-02-19 08:01 PM
|
Re: open, readline, close
|
Lonkero
|
2003-02-19 08:04 PM
|
Re: open, readline, close
|
Sealeopard
|
2003-02-20 06:23 PM
|
Re: open, readline, close
|
Lonkero
|
2003-02-20 07:54 PM
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 611 anonymous users online.
|
|
|