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!

Leveraging Detections from the Splunk Threat Research Team & Cisco Talos

  Now On Demand  Stay ahead of today’s evolving threats with the combined power of the Splunk Threat Research ...

New in Splunk Observability Cloud: Automated Archiving for Unused Metrics

Automated Archival is a new capability within Metrics Management; which is a robust usage & cost optimization ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...