Getting Data In

Could you please help me write the timestamp extraction for below events.

lksridhar
Explorer

Hi Folks.

Could you please help me write the Time_perfix and Time_format extraction for below events.

07:22:50,932 INFO [Timer-5] impl.NotificationLogServiceImpl - [logBefore] - **** Entering the method **** com.monsanto.wms.service.tools.impl.NotificationLogServiceImpl.saveNotificationLog(com.monsanto.wms.persistence.model.NotificationLog,java.lang.Long)
07:22:50,932 INFO [Timer-5] impl.AlertTypeServiceImpl - [logBefore] - **** Entering the method **** com.monsanto.wms.service.tools.impl.AlertTypeServiceImpl.findById(java.lang.Long)

Tags (1)
0 Karma

mayurr98
Super Champion

hey @Iksridhar
Please find below TIME_FORMAT and TIME_PREFIX extractions

TIME_FORMAT = %H:%M:%S,%3N
TIME_PREFIX = ^

Let me know if this helps you!

0 Karma

micahkemp
Champion

Unrelated to the question, but also worth noting, the rest of the index-time coniguration for that sourcetype may look like:

LINE_BREAKER = ([\n\r]+)\d{2}:\d{2}:\d{2},\d{3}\s
SHOULD_LINEMERGE = false

This will ensure you only get new events when the line starts with that timestamp.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...