Zhao Ji Ma,
Thank You for your reply. I have tried it and it works. I was also searching the forum for help and came across http://forums.iis.net/p/1144790/1852237.aspx#1852237. Using it as a guide, here is the solution I made. The EXTRACT_TOKEN functions are used because the date and time strings were embedded in the LAST_EDIT field:
logparser
"select
distinct
FILE_NAME, DateTime
USING
TO_TIMESTAMP
(TO_TIMESTAMP (EXTRACT_TOKEN( LAST_EDIT, 2, ' ' ), 'MM/dd/yy'),
TO_TIMESTAMP (EXTRACT_TOKEN( LAST_EDIT, 4, ' ' ), 'hh:mm:ss')
)
AS DateTime
FROM filename
WHERE (FILE_NAME, DateTime) IN
(select
FILE_NAME, Max(DateTime)
USING
TO_TIMESTAMP
(TO_TIMESTAMP (EXTRACT_TOKEN( LAST_EDIT, 2, ' ' ), 'MM/dd/yy'),
TO_TIMESTAMP (EXTRACT_TOKEN( LAST_EDIT, 4, ' ' ), 'hh:mm:ss')
)
AS DateTime
FROM filename GROUP BY FILE_NAME)
ORDER BY FILE_NAME"
-i:TSV
Thank You again!