Getting Data In

extract timestamp from xml

SplunkCSIT
Communicator

i'm new to splunk, if i got the following xml file and want to extract the following date and time and set as an event timestamp, how to configure it and at forwarder or indexer end? thks

....
20/12/2013
14:13:23+08:00

Tags (1)
0 Karma

somesoni2
Revered Legend

Try with following sourcetype definition (in props.conf)

[yoursourcetype]
BREAK_ONLY_BEFORE= *****mention your event start xml tag. e.g. \<data\>
NO_BINARY_CHECK=1
SHOULD_LINEMERGE=true
TIME_FORMAT=%d/%m/%Y \</start_date\> \<start_time\> %H:%M:%S%z
TIME_PREFIX=\<start_date\>
0 Karma
Get Updates on the Splunk Community!

2024 Splunk Career Impact Survey | Earn a $20 gift card for participating!

Hear ye, hear ye! The time has come again for Splunk's annual Career Impact Survey!  We need your help by ...

Optimize Cloud Monitoring

  TECH TALKS Optimize Cloud Monitoring Tuesday, August 13, 2024  |  11:00AM–12:00PM PST   Register to ...

What's New in Splunk Cloud Platform 9.2.2403?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.2.2403! Analysts can ...