When I run log parser using the code below I get the date and time field together as expected but it is missing the seconds. How do you get it to also list the seconds? The two fields look like,
iis log file:
date time
3/13/2013 0:00:02
Once I run it using the code below it looks like this but is missing the seconds,
What I get after running code below:
timestamp
3/13/2013 0:00
LogParser "SELECT TO_TIMESTAMP(date, time) as timestamp INTO iisLog.csv FROM \\appdev1\c$\inetpub\logs\LogFiles\W3SVC1\u_ex130313.log" -i:iisW3C -o:csv