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!

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 ...