<?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: earliest and latest information in custom python search command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/earliest-and-latest-information-in-custom-python-search-command/m-p/537470#M151944</link>
    <description>&lt;P&gt;For the sake of anyone searching and finding this, these return a float that matches time picker when I try them. I just wish I could find inheritable or nested Option() types so I can borrow those with their existing validation.&lt;/P&gt;&lt;P&gt;earliest = self.search_results_info.api_et&lt;BR /&gt;latest = self.search_results_info.api_lt&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jan 2021 18:02:11 GMT</pubDate>
    <dc:creator>lumpymilk</dc:creator>
    <dc:date>2021-01-27T18:02:11Z</dc:date>
    <item>
      <title>earliest and latest information in custom python search command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/earliest-and-latest-information-in-custom-python-search-command/m-p/189691#M54632</link>
      <description>&lt;P&gt;I was not able to find in the doc a way to get earliest and latest information from the datetimepicker to use in my generating custom search command..&lt;/P&gt;

&lt;P&gt;Any Idea how that work ?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Dec 2013 11:16:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/earliest-and-latest-information-in-custom-python-search-command/m-p/189691#M54632</guid>
      <dc:creator>sbsbb</dc:creator>
      <dc:date>2013-12-25T11:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: earliest and latest information in custom python search command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/earliest-and-latest-information-in-custom-python-search-command/m-p/189692#M54633</link>
      <description>&lt;P&gt;You could prefix the call to your custom generating command like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats count | addinfo | your_command
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That way you should get info about the time range as input events for your command.&lt;/P&gt;

&lt;P&gt;I don't think there's an intended way for accessing this directly - any more. Taken from the doc of splunk.Intersplunk:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;getOrganizedResults(input_str=None)
    Converts an Intersplunk-formatted file object into a dict
    representation of the contained events, and returns a tuple of:

        (results, dummyresults, settings)

    "dummyresults" is always an empty list, and "settings" is always
    an empty dict, since the change to csv stopped sending the
    searchinfo.  It has not been updated to store the auth token.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My guess is you're looking for what used to be in &lt;CODE&gt;searchinfo&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Dec 2013 22:18:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/earliest-and-latest-information-in-custom-python-search-command/m-p/189692#M54633</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-12-25T22:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: earliest and latest information in custom python search command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/earliest-and-latest-information-in-custom-python-search-command/m-p/537470#M151944</link>
      <description>&lt;P&gt;For the sake of anyone searching and finding this, these return a float that matches time picker when I try them. I just wish I could find inheritable or nested Option() types so I can borrow those with their existing validation.&lt;/P&gt;&lt;P&gt;earliest = self.search_results_info.api_et&lt;BR /&gt;latest = self.search_results_info.api_lt&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 18:02:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/earliest-and-latest-information-in-custom-python-search-command/m-p/537470#M151944</guid>
      <dc:creator>lumpymilk</dc:creator>
      <dc:date>2021-01-27T18:02:11Z</dc:date>
    </item>
  </channel>
</rss>

