<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: extract timestamp from xml in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/extract-timestamp-from-xml/m-p/118867#M24677</link>
    <description>&lt;P&gt;Try with following sourcetype definition (in props.conf)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
BREAK_ONLY_BEFORE= *****mention your event start xml tag. e.g. \&amp;lt;data\&amp;gt;
NO_BINARY_CHECK=1
SHOULD_LINEMERGE=true
TIME_FORMAT=%d/%m/%Y \&amp;lt;/start_date\&amp;gt; \&amp;lt;start_time\&amp;gt; %H:%M:%S%z
TIME_PREFIX=\&amp;lt;start_date\&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 03 Apr 2014 15:04:12 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-04-03T15:04:12Z</dc:date>
    <item>
      <title>extract timestamp from xml</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/extract-timestamp-from-xml/m-p/118866#M24676</link>
      <description>&lt;P&gt;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&lt;/P&gt;

&lt;P&gt;....&lt;BR /&gt;
  &lt;START_DATE&gt; 20/12/2013 &lt;/START_DATE&gt;&lt;BR /&gt;
  &lt;START_TIME&gt; 14:13:23+08:00 &lt;/START_TIME&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 14:53:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/extract-timestamp-from-xml/m-p/118866#M24676</guid>
      <dc:creator>SplunkCSIT</dc:creator>
      <dc:date>2014-04-03T14:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: extract timestamp from xml</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/extract-timestamp-from-xml/m-p/118867#M24677</link>
      <description>&lt;P&gt;Try with following sourcetype definition (in props.conf)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
BREAK_ONLY_BEFORE= *****mention your event start xml tag. e.g. \&amp;lt;data\&amp;gt;
NO_BINARY_CHECK=1
SHOULD_LINEMERGE=true
TIME_FORMAT=%d/%m/%Y \&amp;lt;/start_date\&amp;gt; \&amp;lt;start_time\&amp;gt; %H:%M:%S%z
TIME_PREFIX=\&amp;lt;start_date\&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Apr 2014 15:04:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/extract-timestamp-from-xml/m-p/118867#M24677</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-04-03T15:04:12Z</dc:date>
    </item>
  </channel>
</rss>

