Forum Moderators: DixonJones

Message Too Old, No Replies

Help with scipt to sort log files

iPlanet's buggy logging style

         

WebCrawler

9:05 pm on Dec 18, 2002 (gmt 0)

10+ Year Member



Hi,

Can anyone give me some tips on how to write a script to sort log files chronologically for iPlanet. I'm running a UNIX Solaris server. WebTrends hangs when I try to analyze and I have no clue how to write this script. Any direction or help will be much appreciated.

WebCrawler

bcc1234

11:31 pm on Dec 18, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Never used iPlanet, but awk,sed,sort, and sh are your friends.

amoore

11:52 pm on Dec 18, 2002 (gmt 0)

10+ Year Member



Welcome to webmaterworld [webmasterworld.com]
post a few lines of the log files and I'll help you get started.
I'm surprised that the lines aren't in order. Furthermore, I'm surprised that the analysis tool cares, but those are the breaks.

-Andy

WebCrawler

4:57 pm on Dec 19, 2002 (gmt 0)

10+ Year Member



Please see the following post from sometime back. One of the persons brings up the same error I get.
Web Trends Error [webmasterworld.com]

Here is my logfile code:

format=%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] "%Req->reqpb.clf-request%" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length% "%Req->headers.referer%" "%Req->headers.user-agent%" %Req->reqpb.method% %Req->reqpb.uri% %Req->reqpb.query% "%Req->reqpb.protocol%"
64.128.91.173 - - [16/Nov/2002:23:54:58 -0500] "GET /images/side_nav/developer/developer_5.gif HTTP/1.1" 200 479 "http://www.mycompany.com/developer/index.cfm" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705; MSN 6.1; MSNbMSFT; MSNmen-us; MSNc00)" GET /images/side_nav/developer/developer_5.gif - "
°"
64.128.91.173 - - [16/Nov/2002:23:54:58 -0500] "GET /images/top_nav/developer/top_bar.gif HTTP/1.1" 200 3044 "http://www.mycompany.com/developer/index.cfm" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705; MSN 6.1; MSNbMSFT; MSNmen-us; MSNc00)" GET /images/top_nav/developer/top_bar.gif - "
°"

Hope someone can help me here.

Thanks

WC