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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...