<?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 Date and Time Extraction from XML in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Date-and-Time-Extraction-from-XML/m-p/84600#M17580</link>
    <description>&lt;P&gt;I would like to update the date and timestamp for an event during indexing.&lt;/P&gt;

&lt;P&gt;The data is in the following format:&lt;/P&gt;

&lt;P&gt;&lt;TIMESTAMP&gt;2012-03-05T18:21:20.533&lt;/TIMESTAMP&gt;&lt;F1&gt;adfaf&lt;/F1&gt;&lt;F2&gt;adfsafsdf&lt;/F2&gt;&lt;/P&gt;

&lt;P&gt;The timestamp value is in GMT format and I need to convert it into PDT / PST.  Splunk Server runs in PST/PDT.&lt;/P&gt;

&lt;P&gt;Would just setting the TIME_FORMAT take care of it or do I need to set the Prefix too?&lt;/P&gt;</description>
    <pubDate>Mon, 05 Mar 2012 18:55:00 GMT</pubDate>
    <dc:creator>danurag</dc:creator>
    <dc:date>2012-03-05T18:55:00Z</dc:date>
    <item>
      <title>Date and Time Extraction from XML</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Date-and-Time-Extraction-from-XML/m-p/84600#M17580</link>
      <description>&lt;P&gt;I would like to update the date and timestamp for an event during indexing.&lt;/P&gt;

&lt;P&gt;The data is in the following format:&lt;/P&gt;

&lt;P&gt;&lt;TIMESTAMP&gt;2012-03-05T18:21:20.533&lt;/TIMESTAMP&gt;&lt;F1&gt;adfaf&lt;/F1&gt;&lt;F2&gt;adfsafsdf&lt;/F2&gt;&lt;/P&gt;

&lt;P&gt;The timestamp value is in GMT format and I need to convert it into PDT / PST.  Splunk Server runs in PST/PDT.&lt;/P&gt;

&lt;P&gt;Would just setting the TIME_FORMAT take care of it or do I need to set the Prefix too?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2012 18:55:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Date-and-Time-Extraction-from-XML/m-p/84600#M17580</guid>
      <dc:creator>danurag</dc:creator>
      <dc:date>2012-03-05T18:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Date and Time Extraction from XML</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Date-and-Time-Extraction-from-XML/m-p/84601#M17581</link>
      <description>&lt;P&gt;You need to set the prefix as well, since TIME_FORMAT will only look at the beginning of the line, by default:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = &amp;lt;timestamp&amp;gt;
TIME_FORMAT = %Y-%m-%dT%T.%Q
TZ = UTC
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Mar 2012 19:51:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Date-and-Time-Extraction-from-XML/m-p/84601#M17581</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2012-03-05T19:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Date and Time Extraction from XML</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Date-and-Time-Extraction-from-XML/m-p/84602#M17582</link>
      <description>&lt;P&gt;Thank you Steve.  This helped greatly.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2012 21:27:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Date-and-Time-Extraction-from-XML/m-p/84602#M17582</guid>
      <dc:creator>danurag</dc:creator>
      <dc:date>2012-03-07T21:27:56Z</dc:date>
    </item>
  </channel>
</rss>

