Hi,
I'm working on the same date query.I have the following query. It doesn't return any records. Can you tell me what i'm doing wrong?
logparser -o:DATAGRID "select date,time,cs-uri-stem,sc-status,count(*) from 'D:\\logfiles\\W3SVC1\\Investments.log' WHERE TO_TIME(time) BETWEEN TIMESTAMP('11/01 00:00:00', 'MM/dd hh:mm:ss') AND TIMESTAMP('11/07 00:00:00', 'MM/dd hh:mm:ss') group by cs-uri-stem, date,time,sc-status order by count(*) DESC"
or the following query
logparser -o:DATAGRID "select date,time,cs-uri-stem,sc-status,count(*) from 'D:\\logfiles\\W3SVC1\\Investments.log' WHERE date BETWEEN TO_TIMESTAMP('2007-11-05','yyyy-mm-dd') AND TO_TIMESTAMP('2007-11-06', 'yyyy-mm-dd') group by cs-uri-stem, date,time,sc-status order by count(*) DESC"
My log has the following date fields as follows:
2007-11-05 05:00:02 W3SVC1 S3W04113 10.101.158.31 HEAD /HealthCheck.asp - 80 - 10.101.158.3 Mozilla/4.06+[en]+(WinNT;+I) - 10.101.158.31 200 0 254 31
2007-11-06 03:28:47 W3SVC1 S3W04113 10.101.158.31 GET /MyAccount/aspxPage/Holdings.aspx language=ENGLISH&system=NETA&SGID=9e7f318e82375c35f5d536c9381c0015372f&IB=1&xtid=RBC:f43e7e1bdf424fe3aabb691f8bc5537d&xbrand=AD&REMOTE_ADDR=216.106.103.70&REMOTE_HOST=216.106.103.70&LOGICALSESSID=cHTWRgDIwt4vRwwfAACgFgAAksARAA__&DISTINGUISHID=4519036551795131 80 - 10.236.41.175 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) - 200 0 2275 281
Thanks,
(I'm using 2.2 version)