<?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: dbinspect fields names and format changed in 6.* in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/dbinspect-fields-names-and-format-changed-in-6/m-p/155301#M185682</link>
    <description>&lt;P&gt;Yes, the format of dbinspect changed in 6.*&lt;BR /&gt;
see &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Dbinspect"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Dbinspect&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The time fields were renamed and converted to epoch time.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;earliestTime&lt;/EM&gt; (in formatted time ) became &lt;EM&gt;endEpoch&lt;/EM&gt; (in epoch)&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;latestTime&lt;/EM&gt; (in formatted time ) became &lt;EM&gt;startEpoch&lt;/EM&gt; (in epoch)&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;You can update your searches to use the new fields, or do a simple conversion.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| dbinspect &lt;BR /&gt;
| convert ctime(endEpoch) AS earliestTime&lt;BR /&gt;
| convert ctime(startEpoch) AS latestTime&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Nov 2013 16:21:06 GMT</pubDate>
    <dc:creator>yannK</dc:creator>
    <dc:date>2013-11-25T16:21:06Z</dc:date>
    <item>
      <title>dbinspect fields names and format changed in 6.*</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dbinspect-fields-names-and-format-changed-in-6/m-p/155300#M185681</link>
      <description>&lt;P&gt;I was using &lt;EM&gt;dbinpect&lt;/EM&gt; to calculates the first and last events in my buckets.&lt;BR /&gt;
In splunk 4.* and 5.*, it was returning 2 fields earliestTime and latestTime as a date in my SH timezone.&lt;/P&gt;

&lt;P&gt;But I do not find those fields anymore in 6.*, how to get them ?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2013 16:17:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dbinspect-fields-names-and-format-changed-in-6/m-p/155300#M185681</guid>
      <dc:creator>mataharry</dc:creator>
      <dc:date>2013-11-25T16:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: dbinspect fields names and format changed in 6.*</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dbinspect-fields-names-and-format-changed-in-6/m-p/155301#M185682</link>
      <description>&lt;P&gt;Yes, the format of dbinspect changed in 6.*&lt;BR /&gt;
see &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Dbinspect"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Dbinspect&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The time fields were renamed and converted to epoch time.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;earliestTime&lt;/EM&gt; (in formatted time ) became &lt;EM&gt;endEpoch&lt;/EM&gt; (in epoch)&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;latestTime&lt;/EM&gt; (in formatted time ) became &lt;EM&gt;startEpoch&lt;/EM&gt; (in epoch)&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;You can update your searches to use the new fields, or do a simple conversion.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| dbinspect &lt;BR /&gt;
| convert ctime(endEpoch) AS earliestTime&lt;BR /&gt;
| convert ctime(startEpoch) AS latestTime&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2013 16:21:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dbinspect-fields-names-and-format-changed-in-6/m-p/155301#M185682</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-11-25T16:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: dbinspect fields names and format changed in 6.*</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dbinspect-fields-names-and-format-changed-in-6/m-p/155302#M185683</link>
      <description>&lt;P&gt;you need to switch:&lt;/P&gt;

&lt;P&gt;earliestTime (in formatted time ) became startEpoch  (in epoch)&lt;BR /&gt;
latestTime (in formatted time ) became endEpoch (in epoch) &lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 00:47:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dbinspect-fields-names-and-format-changed-in-6/m-p/155302#M185683</guid>
      <dc:creator>dlutzy</dc:creator>
      <dc:date>2015-10-14T00:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: dbinspect fields names and format changed in 6.*</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dbinspect-fields-names-and-format-changed-in-6/m-p/155303#M185684</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| convert ctime(endEpoch) AS latestTime | convert ctime(startEpoch) AS earliestTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;gotta get yannK to flip the fields in the convert &lt;/P&gt;

&lt;P&gt;startEpoch - The timestamp for the first event in the bucket (the time-edge of the bucket furthest towards the past), in number of seconds from the UNIX epoch. &lt;/P&gt;

&lt;P&gt;endEpoch - The timestamp for the last event in the bucket, which is the time-edge of the bucket furthest towards the future. Specify the timestamp in the number of seconds from the UNIX epoch. &lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 13:26:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dbinspect-fields-names-and-format-changed-in-6/m-p/155303#M185684</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2016-10-26T13:26:19Z</dc:date>
    </item>
  </channel>
</rss>

