AUDIT LOG DISPLAYS WRONG TIME ...?

  • i have implemented the sql audit for the sql server 2008 sp1.When view the audit logs I am wondering why does it display the wrong date and time.....?

  • Where is the SQL Server instance located?

  • I'm having the same issue on multiple servers. All are in EST, and SQL logs, Agent logs, Database Mail logs, etc. ALL have correct date and time, but Server Audit logs display 4 hours into the future.

  • Timothy Batts (8/19/2011)


    I'm having the same issue on multiple servers. All are in EST, and SQL logs, Agent logs, Database Mail logs, etc. ALL have correct date and time, but Server Audit logs display 4 hours into the future.

    It is probably recording the time in UTC time because four hours is the current offset from Eastern Daylight Time to UTC time.

    Eastern Daylight Time = UTC -4

  • My Server shows 11 AM and the logs show 4AM. Damn whats the issue with this?

  • SQL Audits are logged with UTC times.

    Audits (General Page)

    Joie Andrew
    "Since 1982"

  • Hello I have the same issue, i use this alternative way

    SELECT DATEADD(hh, DATEDIFF(hh, GETUTCDATE(), CURRENT_TIMESTAMP), event_time )

    as corrected_time,

    action_id ,

    session_server_principal_name,

    server_instance_name ,

    database_name ,

    schema_name ,

    object_name ,

    statement ,

    file_name FROM sys.fn_get_audit_file( 'C:\*.sqlaudit' , DEFAULT , DEFAULT)

    I hope it been usefull

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply