Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-798

Handle different timezone issue while saving audit logs to Solr

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.5.0
    • 0.5.2, 0.6.0
    • admin, audit
    • None

    Description

      Problem Statement :
      Currently audit event timestamp is converted to UTC timestamp at Plugin end and then it is sent to audit stores, Since Date object picks local timezone info from System, local timezone info is passed to Solr rather than UTC.
      Since Solr engine does the conversion of all received Date object to UTC timestamp, due to mismatched timezone info, Solr again does the conversion on received timestamp, which leads to insertion of wrong event timestamp. if any user tries to search any audit event log then he might not get the expected result or audit logs of provided event.

      Proposed Solution :
      Send new Date object value as audit event time to Solr Doc, if audit store is Solr.

      Attachments

        Issue Links

          Activity

            People

              gautamborad Gautam Borad
              gautamborad Gautam Borad
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: