Sign in
Blog du Tristank
So terrific that 3 of 4 readers rated it "soporific"
Search Blogs
Badges and stuff
Options
Blog Home
About
Share this
RSS for posts
Atom
RSS for comments
Archive
Archives
April 2013
(2)
March 2013
(1)
February 2013
(1)
October 2012
(1)
September 2012
(4)
August 2012
(2)
June 2012
(2)
May 2012
(1)
March 2012
(1)
February 2012
(2)
January 2012
(1)
December 2011
(2)
October 2011
(3)
July 2011
(3)
June 2011
(2)
February 2011
(1)
December 2010
(1)
September 2010
(2)
July 2010
(1)
June 2010
(3)
May 2010
(8)
April 2010
(1)
March 2010
(2)
February 2010
(4)
January 2010
(2)
October 2009
(3)
August 2009
(2)
June 2009
(2)
May 2009
(5)
April 2009
(4)
March 2009
(2)
February 2009
(1)
January 2009
(5)
November 2008
(2)
September 2008
(2)
August 2008
(2)
June 2008
(3)
April 2008
(5)
March 2008
(7)
February 2008
(2)
January 2008
(1)
December 2007
(3)
November 2007
(2)
October 2007
(2)
September 2007
(1)
August 2007
(2)
July 2007
(3)
June 2007
(4)
May 2007
(3)
April 2007
(8)
March 2007
(7)
February 2007
(6)
January 2007
(6)
December 2006
(8)
November 2006
(4)
October 2006
(7)
September 2006
(3)
August 2006
(8)
July 2006
(5)
June 2006
(8)
May 2006
(11)
April 2006
(6)
March 2006
(8)
February 2006
(10)
January 2006
(5)
December 2005
(8)
November 2005
(8)
October 2005
(11)
September 2005
(19)
August 2005
(22)
July 2005
(15)
June 2005
(29)
May 2005
(21)
April 2005
(15)
March 2005
(8)
February 2005
(11)
January 2005
(13)
December 2004
(15)
November 2004
(12)
October 2004
(18)
September 2004
(13)
August 2004
(16)
July 2004
(11)
June 2004
(12)
May 2004
(6)
April 2004
(4)
March 2004
(7)
ISA 2000: Filter Proxy Logs with FIND
TechNet Blogs
>
Blog du Tristank
>
ISA 2000: Filter Proxy Logs with FIND
ISA 2000: Filter Proxy Logs with FIND
Tristan K
13 Jul 2004 7:39 PM
Comments
2
I'm often faced with the somewhat daunting task of wading through a 500MB log file to try to identify a problem with one user of a proxy server.
I find the simplest way to even the odds a bit - using out-of-the-box tools - is to use the humble FIND command to filter the logs down to just the parts I think I'm interested in.
First, copy the log file you think contains the event you're interested in to your workstation from the ISA box - trying to do this remotely is just going to end in tears. ISA logs are kept in the Program Files\Microsoft ISA Server\ISALogs folder, called WEBext, FWSext and IPPext (with date numbers) for Web Proxy, Firewall and SecureNAT, and Packet Filtering logs respectively.
Once the log file's copied, I kick off with a fairly general filter; usually the client IP address is a good place to start, so the command looks like this:
FIND "192.168.0.1" WEBEXTnnnn.log > BarrysIP.txt
This will sort through the web proxy log, and anytime the string specified appears on a line, the whole line will be dumped into the new BarrysIP.txt file.
If you still have too much to look through, you can then filter BarrysIP down to, say, a particular site he's having a problem with:
FIND /I "barrysdomain.dom" BarrysIP.txt > barrysdom.txt
This time, we're specifying a case-insensitive search with /I, and we're redirecting the output to what's hopefully a much smaller file, which can be pulled into Excel or Notepad and analyzed to your heart's content...
2 Comments
IT Pro / Sysadmin
,
ISA Server
,
Networking
Comments
Jodee R.
13 Jul 2004 9:57 PM
You could also use qgrep from the Resource Kit and that gives you about 14 options (regular expressions!) compared to find's 4.
Extra Bits That Didn't Fit
13 Aug 2004 3:16 AM
Page 1 of 1 (2 items)