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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...