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
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!

Kick the Tires Before You Commit: A Hands-On Tour of the Splunk Observability Cloud ...

Evaluating an enterprise observability platform usually goes like this: fill out a form, get a free trial with ...

Deep insights, no barriers: Splunk Observability Cloud Free Edition

As software delivery cycles continue to accelerate, observability shouldn’t be a luxury — it should be a ...

Monitoring AI Agents with Splunk Observability Cloud

Let’s say I’m running a travel planning AI app in production. A user asks for three concise hotel options in ...