<?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: Calculate earliest, latest with timepicker in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Calculate-earliest-latest-with-timepicker/m-p/456243#M128998</link>
    <description>&lt;P&gt;You are combining things.  If you are using &lt;CODE&gt;$global_pckr.earliest$&lt;/CODE&gt; and &lt;CODE&gt;$global_pcker.latest$&lt;/CODE&gt; then you do not need &lt;CODE&gt;| addinfo&lt;/CODE&gt; because it is redundant.  As far as, "How can you get &lt;CODE&gt;this&lt;/CODE&gt; to work", you have not explained what exactly &lt;CODE&gt;this&lt;/CODE&gt; is so there is no way that we can help you further.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2019 16:37:05 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-08-19T16:37:05Z</dc:date>
    <item>
      <title>Calculate earliest, latest with timepicker</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-earliest-latest-with-timepicker/m-p/456240#M128995</link>
      <description>&lt;P&gt;My case is that I have got a dashboard with panels where I have a global time picker $global_pckr$&lt;BR /&gt;
I need to calculate the latest timespan for a specific panel, when the user picks a too wide timespan.&lt;/P&gt;

&lt;P&gt;index=proxy src=$ip$&lt;BR /&gt;
[|gentimes start=-1 | addinfo | eval earliest=$global_pckr.earliest$, latest=relative_time($global_pckr.earliest$, "+7d"]&lt;BR /&gt;
| stats count min(_time) as end max(_time as start by action src url&lt;/P&gt;

&lt;P&gt;I get the Error: Unable to parse 156616... with format: %m/%d/%&amp;gt;:%H:%M:%S&lt;/P&gt;

&lt;P&gt;How can I get this work? &lt;/P&gt;

&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:49:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-earliest-latest-with-timepicker/m-p/456240#M128995</guid>
      <dc:creator>igschloessl</dc:creator>
      <dc:date>2020-09-30T01:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate earliest, latest with timepicker</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-earliest-latest-with-timepicker/m-p/456241#M128996</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
Few corrections i think: &lt;BR /&gt;
1. No comma used in eval statements for creating multiple eval fields. &lt;STRONG&gt;&lt;EM&gt;Reference-&amp;gt;&lt;/EM&gt;&lt;/STRONG&gt; &lt;BR /&gt;
 &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/7.2.6/SearchReference/Eval" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/7.2.6/SearchReference/Eval&lt;/A&gt;&lt;BR /&gt;
2. Stats usage is | stats min(_time) as end max(_time as start by action src url. if you want to add count also,then use &lt;EM&gt;| stats count as "new_label"&lt;/EM&gt; &lt;STRONG&gt;&lt;EM&gt;Reference-&amp;gt;&lt;/EM&gt;&lt;/STRONG&gt; &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/Stats" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/Stats&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;index=proxy src=$ip$&lt;BR /&gt;
[|gentimes start=-1 | addinfo | eval earliest=$global_pckr.earliest$| eval  latest=relative_time($global_pckr.earliest$, "+7d"]&lt;BR /&gt;
| stats count min(_time) as end max(_time as start by action src url&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:49:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-earliest-latest-with-timepicker/m-p/456241#M128996</guid>
      <dc:creator>apcsplunk</dc:creator>
      <dc:date>2020-09-30T01:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate earliest, latest with timepicker</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-earliest-latest-with-timepicker/m-p/456242#M128997</link>
      <description>&lt;P&gt;"Correction" 1 is incorrect.  The comma is &lt;EM&gt;required&lt;/EM&gt; when performing multiple evals in a single statement.&lt;BR /&gt;
"Correction" 2 implies the &lt;CODE&gt;as&lt;/CODE&gt; clause is required.  It is not.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 12:47:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-earliest-latest-with-timepicker/m-p/456242#M128997</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-08-19T12:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate earliest, latest with timepicker</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-earliest-latest-with-timepicker/m-p/456243#M128998</link>
      <description>&lt;P&gt;You are combining things.  If you are using &lt;CODE&gt;$global_pckr.earliest$&lt;/CODE&gt; and &lt;CODE&gt;$global_pcker.latest$&lt;/CODE&gt; then you do not need &lt;CODE&gt;| addinfo&lt;/CODE&gt; because it is redundant.  As far as, "How can you get &lt;CODE&gt;this&lt;/CODE&gt; to work", you have not explained what exactly &lt;CODE&gt;this&lt;/CODE&gt; is so there is no way that we can help you further.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 16:37:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-earliest-latest-with-timepicker/m-p/456243#M128998</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-08-19T16:37:05Z</dc:date>
    </item>
  </channel>
</rss>

