Getting Data In

Is it possible to have ms _time accuracy into _time extracted from wineventlog at index time?

Random_Walk
Path Finder

Y'all,

I have events from a windows eventlog and the application writes time with ms precision into the Message field of the event, along with other app data. So the Message field looks like:

Message=2022-05-05 22:34:11.756|lots|of|app|logging|pipe|seperated

matching the strftime format "%Y-%m-%d %H:%M:%S.%3N" 

I have this in my props.conf (There are no "quotation marks" around the message value in event)

[WinEventLog:RPA]
TIME_PREFIX = Message=
TIME_FORMAT = %Y-%m-%d %H:%M:%S.%3N
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n](?=\d{2}/\d{2}/\d{2,4} \d{2}:\d{2}:\d{2} [aApPmM]{2}))

But I still get all events tagged with the time (probably from the win event time) with second accuracy, not ms. I check that with a search like

index=my_app_events source="WinEventLog:MyApp" 
| convert timeformat="%Y-%m-%d %H:%M:%S.%3N" ctime(_time)
| table _time Message

Is it possible to have ms accuracy in _time (I saw somewhere that it was second granularity) or am I missing something else?

Thanks In Advance,

R.

P.S. For bonus points in some error cases the Message= field will contain error data with no timestamp. In such a case of course I want to fall back the the Windows Event timestamp 

Labels (3)
Tags (2)
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...