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!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...