Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When I query our IIS logs, I get a value of '30/12/1899' in the date column.

select * from 'C:\IIS 2013 Logs\*.log'

However for some rows, it does have a valid date. (Coincidently rows that have a day number less than or equal to 12) So immediately you can tell it's a date formatting issue.

Our IIS is logging in american date format (mm-dd-yyyy) - I cannot change this. Our server however runs on UK date format (dd-mm-yyyy).

Is there an extra argument I can give log parser so that it grabs the dates correctly from our americanized logs?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

You can use the -locale:USAcommand-line flag to tell logparser that the dates in the log are in US format.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.