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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...