Getting Data In

Timestamp Problem

fetjerry
New Member

Dears,
I have a multi line log as following sample, the hours,minutes, and seconds in different line,
how could I define the timestamp?

Thanks a lot.

======EVENT======
header:

event_id = activate

event_result = success

time_hour = 12

time_minute = 6

time_second = 19
activation_type = gprs_primary
rat = wcdma
cause_prot_type = ril3

Tags (1)
0 Karma

kristian_kolb
Ultra Champion

Hm, I haven't tried it, so I'm not too sure that multiline TIME_FORMAT specifications work, but you could always try;

TIME_PREFIX = time_hour = 
TIME_FORMAT = %H%ntime_minute = %M%ntime_second = %S

where the %n is the newline character. If there are multiple newlines (as in your example above) you'd need to put in %n%n etc.

Hope this works,

K

0 Karma
Get Updates on the Splunk Community!

Deep Dive into Federated Analytics: Unlocking the Full Power of Your Security Data

In today’s complex digital landscape, security teams face increasing pressure to protect sprawling data across ...

Your summer travels continue with new course releases

Summer in the Northern hemisphere is in full swing, and is often a time to travel and explore. If your summer ...

From Alert to Resolution: How Splunk Observability Helps SREs Navigate Critical ...

It's 3:17 AM, and your phone buzzes with an urgent alert. Wire transfer processing times have spiked, and ...