-
Notifications
You must be signed in to change notification settings - Fork 41
Description
Hi,
The function uses the "time" property of the event to send the "time" metadata property while sending via HEC. The problem is, when looking at AAD sign-ins, the "time" in the event is not the true sign-in time. The true sign-in time is in the properties.createdDateTime field.
Given these 3 sign-ins examples, we can see in the 1st screenshot the "time" field doesn't correspond to the true Sign-In times as reported by Azure (2nd screenshot).

Now normally we could use sourcetype time settings in Splunk to overwrite how Splunk parses the time, but in this case we cannot. Since the time field is sent as time metadata through HEC, that's the time that it uses regardless of sourcetype settings.
I think what would be best here is not sending any "time" metadata. Let Splunk configuration do its thing, allow it and us to configure time parsing. All events coming in will have some other field we can use to determine true time. And if not, Splunk will use the index time. No harm done.
Line 86-87 and 98-99 of helpers/splunk.js is what I'm referring to. It could be removed to fix this.
