<?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: Is it possible to set a conditional timestamp from indexed events? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-set-a-conditional-timestamp-from-indexed/m-p/292788#M55776</link>
    <description>&lt;P&gt;Example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;item1 name='foo'&amp;gt;
    &amp;lt;timestamp1&amp;gt;2017-Jun-30 22:10:50&amp;lt;/timestamp1&amp;gt;
    &amp;lt;otherdata&amp;gt; ... &amp;lt;/otherdata&amp;gt;
&amp;lt;/item1&amp;gt;
&amp;lt;item2 name='bar'&amp;gt;
    &amp;lt;timestamp1&amp;gt;2017-Jun-30 22:24:32&amp;lt;/timestamp1&amp;gt;
    &amp;lt;otherdata&amp;gt; ... &amp;lt;/otherdata&amp;gt;
    &amp;lt;timestamp2&amp;gt;2017-Jun-6 08:11:46&amp;lt;/timestamp2&amp;gt;
&amp;lt;/item2&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 30 Jun 2017 16:10:19 GMT</pubDate>
    <dc:creator>amanno</dc:creator>
    <dc:date>2017-06-30T16:10:19Z</dc:date>
    <item>
      <title>Is it possible to set a conditional timestamp from indexed events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-set-a-conditional-timestamp-from-indexed/m-p/292786#M55774</link>
      <description>&lt;P&gt;I have an XML file with "items" that are being indexed.  The issue is that these "items" can possibly have two different timestamps.  At the time of indexing I want to specify the timestamp conditional on which one is available.  So every item at least has &lt;EM&gt;timestamp1&lt;/EM&gt;&lt;BR /&gt;
 and only some have &lt;EM&gt;timestamp2&lt;/EM&gt; but if &lt;EM&gt;timestamp2&lt;/EM&gt; exists I want that to be the timestamp seen by splunk if not then I want &lt;EM&gt;timestamp1&lt;/EM&gt;.  The TIME_PREFIXES would be different but I cannot seem to find a way to make the TIME_PREFIX conditional.  &lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:44:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-set-a-conditional-timestamp-from-indexed/m-p/292786#M55774</guid>
      <dc:creator>amanno</dc:creator>
      <dc:date>2020-09-29T14:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set a conditional timestamp from indexed events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-set-a-conditional-timestamp-from-indexed/m-p/292787#M55775</link>
      <description>&lt;P&gt;can you post some sample events.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 16:03:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-set-a-conditional-timestamp-from-indexed/m-p/292787#M55775</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2017-06-30T16:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set a conditional timestamp from indexed events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-set-a-conditional-timestamp-from-indexed/m-p/292788#M55776</link>
      <description>&lt;P&gt;Example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;item1 name='foo'&amp;gt;
    &amp;lt;timestamp1&amp;gt;2017-Jun-30 22:10:50&amp;lt;/timestamp1&amp;gt;
    &amp;lt;otherdata&amp;gt; ... &amp;lt;/otherdata&amp;gt;
&amp;lt;/item1&amp;gt;
&amp;lt;item2 name='bar'&amp;gt;
    &amp;lt;timestamp1&amp;gt;2017-Jun-30 22:24:32&amp;lt;/timestamp1&amp;gt;
    &amp;lt;otherdata&amp;gt; ... &amp;lt;/otherdata&amp;gt;
    &amp;lt;timestamp2&amp;gt;2017-Jun-6 08:11:46&amp;lt;/timestamp2&amp;gt;
&amp;lt;/item2&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Jun 2017 16:10:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-set-a-conditional-timestamp-from-indexed/m-p/292788#M55776</guid>
      <dc:creator>amanno</dc:creator>
      <dc:date>2017-06-30T16:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set a conditional timestamp from indexed events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-set-a-conditional-timestamp-from-indexed/m-p/292789#M55777</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX=(&amp;lt;timestamp1&amp;gt;(?!.*&amp;lt;timestamp2&amp;gt;))|(&amp;lt;timestamp2&amp;gt;)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Jun 2017 19:15:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-set-a-conditional-timestamp-from-indexed/m-p/292789#M55777</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-06-30T19:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set a conditional timestamp from indexed events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-set-a-conditional-timestamp-from-indexed/m-p/292790#M55778</link>
      <description>&lt;P&gt;Are these CDRs?&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2017 02:53:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-set-a-conditional-timestamp-from-indexed/m-p/292790#M55778</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-07-02T02:53:13Z</dc:date>
    </item>
  </channel>
</rss>

