Hello All,
I'm trying to convert a IIS file ( in Microsoft IIS format ) to a CSV
I'm using the following command :
"C:\Program Files (x86)\Log Parser 2.2\LogParser.exe" "Select UserIP,UserName,date,time,serverIP,statusCode,target INTO c:\mytarget.csv FROM \\mycomputer\mysharing\my_log.log" -i:IIS -o:CSV
here a sample of a row of my source file :
127.0.0.1, -, 11/21/2012, 0:00:01, W3SVC456758617, MY-SERVER, 192.168.1.1, 234, 149, 326, 304, 0, GET, /myurl/myfile.html, -,
When i'am playing my query the CSV is correctly created but the date field is null on each row in the target file.
I've tried to change date format in the local settings in order to match the date format present in the log file with no success.
I've also tried this kind of query :
"C:\Program Files (x86)\Log Parser 2.2\LogParser.exe" "Select UserIP,UserName,To_String(date,'dd/MM/yyy'),time,serverIP,statusCode,target INTO c:\mytarget.csv FROM \\mycomputer\mysharing\my_log.log" -i:IIS -o:CSV
in order to try to force a conversion to a string.
Thanks in advance for your help !
Regards,