<?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: Splunk Thinking - I need max(X) when you see Y happen. in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Splunk-Thinking-I-need-max-X-when-you-see-Y-happen/m-p/291258#M5239</link>
    <description>&lt;P&gt;What's the logic behind only selecting ene with PanCount=1991 but not PanCount=6? Based on timestmap (select the previous 10s window?&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2017 19:32:31 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-05-12T19:32:31Z</dc:date>
    <item>
      <title>Splunk Thinking - I need max(X) when you see Y happen.</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Splunk-Thinking-I-need-max-X-when-you-see-Y-happen/m-p/291257#M5238</link>
      <description>&lt;P&gt;So I’m struggling with something basic here.  I just don’t quite understand how Splunk wants to look at the data, once I understand that everything else should fall into place.&lt;/P&gt;

&lt;P&gt;In this example, the PanCycleShift=18 event is a step performed by the operator when he opens a big gate and parts fall out.&lt;BR /&gt;
I am interested in the PanCount value right at/right before PanCycleShift increments, or how many parts were in the pan before he opened the gate.&lt;BR /&gt;
But, since Kepware IoT Gateway is reporting data changes every 10 seconds (for now), in the below example you can see that a PanCount event traveled with the PanCycleShift event.&lt;BR /&gt;
I do not want PanCount=6, I want PanCount=1991 as the number of parts that fell out of the gate when PanCycleShift=18 occurred.&lt;/P&gt;

&lt;P&gt;How does Splunk want me to think around this problem?&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Chris&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2921i6D85763284C4E509/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 19:23:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Splunk-Thinking-I-need-max-X-when-you-see-Y-happen/m-p/291257#M5238</guid>
      <dc:creator>cmisztur</dc:creator>
      <dc:date>2017-05-12T19:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Thinking - I need max(X) when you see Y happen.</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Splunk-Thinking-I-need-max-X-when-you-see-Y-happen/m-p/291258#M5239</link>
      <description>&lt;P&gt;What's the logic behind only selecting ene with PanCount=1991 but not PanCount=6? Based on timestmap (select the previous 10s window?&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 19:32:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Splunk-Thinking-I-need-max-X-when-you-see-Y-happen/m-p/291258#M5239</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-05-12T19:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Thinking - I need max(X) when you see Y happen.</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Splunk-Thinking-I-need-max-X-when-you-see-Y-happen/m-p/291259#M5240</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YOUR BASE SEARCH HERE
| filldown PanCycleShift
| stats max(PanCount) BY PanCycleShift
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 May 2017 22:57:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Splunk-Thinking-I-need-max-X-when-you-see-Y-happen/m-p/291259#M5240</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-12T22:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Thinking - I need max(X) when you see Y happen.</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Splunk-Thinking-I-need-max-X-when-you-see-Y-happen/m-p/291260#M5241</link>
      <description>&lt;P&gt;I need to know how many pieces were in the pan when the pan cycled.  Which would be the bigger number surrounding the pan cycle event.  What most likely happened in this case is that somewhere between 2:04:57 and 2:05:07, &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;the machine stopped producing pieces and the pan count remained at 1991 &lt;/LI&gt;
&lt;LI&gt;OR because of my 10 second data collection interval I never captured the true maximum value and never captured the pan count rolling over to zero&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 16 May 2017 11:46:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Splunk-Thinking-I-need-max-X-when-you-see-Y-happen/m-p/291260#M5241</guid>
      <dc:creator>cmisztur</dc:creator>
      <dc:date>2017-05-16T11:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Thinking - I need max(X) when you see Y happen.</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Splunk-Thinking-I-need-max-X-when-you-see-Y-happen/m-p/291261#M5242</link>
      <description>&lt;P&gt;Why does this work?  Why does it display 1991 and not 6 if it is getting the last non null?&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://i.imgur.com/HcdnEXm.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;BASE_SEARCH (PanCount=* OR PanCycleShift=*) | sort - _time | filldown PanCycleShift | stats max(PanCount) BY PanCycleShift
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 May 2017 11:55:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Splunk-Thinking-I-need-max-X-when-you-see-Y-happen/m-p/291261#M5242</guid>
      <dc:creator>cmisztur</dc:creator>
      <dc:date>2017-05-16T11:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Thinking - I need max(X) when you see Y happen.</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Splunk-Thinking-I-need-max-X-when-you-see-Y-happen/m-p/291262#M5243</link>
      <description>&lt;P&gt;Ohhhhh, I get it, because I'm getting the max(PanCount)&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 11:58:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Splunk-Thinking-I-need-max-X-when-you-see-Y-happen/m-p/291262#M5243</guid>
      <dc:creator>cmisztur</dc:creator>
      <dc:date>2017-05-16T11:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Thinking - I need max(X) when you see Y happen.</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Splunk-Thinking-I-need-max-X-when-you-see-Y-happen/m-p/291263#M5244</link>
      <description>&lt;P&gt;Right; the &lt;CODE&gt;filldown&lt;/CODE&gt; extends the &lt;CODE&gt;PanCycleShift&lt;/CODE&gt; to the other events and then you check all of those events for the biggest &lt;CODE&gt;PanCount&lt;/CODE&gt; value.  So did this solve your problem?  If so, then do click &lt;CODE&gt;Accept&lt;/CODE&gt; to close it.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 16:04:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Splunk-Thinking-I-need-max-X-when-you-see-Y-happen/m-p/291263#M5244</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-16T16:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Thinking - I need max(X) when you see Y happen.</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Splunk-Thinking-I-need-max-X-when-you-see-Y-happen/m-p/291264#M5245</link>
      <description>&lt;P&gt;You need &lt;CODE&gt;sort 0 - _time&lt;/CODE&gt; or you will be dropping events.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 16:06:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Splunk-Thinking-I-need-max-X-when-you-see-Y-happen/m-p/291264#M5245</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-16T16:06:05Z</dc:date>
    </item>
  </channel>
</rss>

