<?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 How to get the exact row from a results table to use for other panel searches in the same dashboard? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-exact-row-from-a-results-table-to-use-for-other/m-p/211695#M61928</link>
    <description>&lt;P&gt;Hello! &lt;/P&gt;

&lt;P&gt;I want to make an error monitoring dashboard. I want to have a table with (operation| okOperations/allOperations) and 4 timechart panels with top-error operations, that work dynamically.&lt;/P&gt;

&lt;P&gt;For the first table I have a search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=prt result=*
| eventstats c(eval(result!="")) as totalOp c(eval(result="OK")) as okOp by operation 
| eval ratio=1-okOp/totalOp|stats max(ratio) as ratio by operation | sort 3 -ratio
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It returns result table &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;table&amp;gt;
    &amp;lt;tr&amp;gt;
        &amp;lt;td&amp;gt;operation&amp;lt;/td&amp;gt;
        &amp;lt;td&amp;gt;result&amp;lt;/td&amp;gt;
    &amp;lt;/tr&amp;gt;
    &amp;lt;tr&amp;gt;
        &amp;lt;td&amp;gt;check&amp;lt;/td&amp;gt;
        &amp;lt;td&amp;gt;1&amp;lt;/td&amp;gt;
    &amp;lt;/tr&amp;gt;
    &amp;lt;tr&amp;gt;
        &amp;lt;td&amp;gt;search&amp;lt;/td&amp;gt;
        &amp;lt;td&amp;gt;0. 2&amp;lt;/td&amp;gt;
    &amp;lt;/tr&amp;gt;
    &amp;lt;tr&amp;gt;
        &amp;lt;td&amp;gt;buy&amp;lt;/td&amp;gt;
        &amp;lt;td&amp;gt;0.2&amp;lt;/td&amp;gt;
    &amp;lt;/tr&amp;gt;
&amp;lt;/table&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now I want to use operations names in 3 new searches (for 3 panels) like this:&lt;BR /&gt;
|rownum = 1 |timechart count(operation) by result&lt;BR /&gt;&lt;BR /&gt;
|rownum = 2 |timechart count(operation) by result&lt;BR /&gt;&lt;BR /&gt;
|rownum = 3 |timechart count(operation) by result  &lt;/P&gt;

&lt;P&gt;I don't want to use &lt;CODE&gt;| streamstats count as rownum&lt;/CODE&gt;, because it works very slowly. How can I make a search for panels? &lt;BR /&gt;
It will be good to use hidden search and then reuse its results in panels. &lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2016 09:36:56 GMT</pubDate>
    <dc:creator>belladonna</dc:creator>
    <dc:date>2016-06-16T09:36:56Z</dc:date>
    <item>
      <title>How to get the exact row from a results table to use for other panel searches in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-exact-row-from-a-results-table-to-use-for-other/m-p/211695#M61928</link>
      <description>&lt;P&gt;Hello! &lt;/P&gt;

&lt;P&gt;I want to make an error monitoring dashboard. I want to have a table with (operation| okOperations/allOperations) and 4 timechart panels with top-error operations, that work dynamically.&lt;/P&gt;

&lt;P&gt;For the first table I have a search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=prt result=*
| eventstats c(eval(result!="")) as totalOp c(eval(result="OK")) as okOp by operation 
| eval ratio=1-okOp/totalOp|stats max(ratio) as ratio by operation | sort 3 -ratio
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It returns result table &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;table&amp;gt;
    &amp;lt;tr&amp;gt;
        &amp;lt;td&amp;gt;operation&amp;lt;/td&amp;gt;
        &amp;lt;td&amp;gt;result&amp;lt;/td&amp;gt;
    &amp;lt;/tr&amp;gt;
    &amp;lt;tr&amp;gt;
        &amp;lt;td&amp;gt;check&amp;lt;/td&amp;gt;
        &amp;lt;td&amp;gt;1&amp;lt;/td&amp;gt;
    &amp;lt;/tr&amp;gt;
    &amp;lt;tr&amp;gt;
        &amp;lt;td&amp;gt;search&amp;lt;/td&amp;gt;
        &amp;lt;td&amp;gt;0. 2&amp;lt;/td&amp;gt;
    &amp;lt;/tr&amp;gt;
    &amp;lt;tr&amp;gt;
        &amp;lt;td&amp;gt;buy&amp;lt;/td&amp;gt;
        &amp;lt;td&amp;gt;0.2&amp;lt;/td&amp;gt;
    &amp;lt;/tr&amp;gt;
&amp;lt;/table&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now I want to use operations names in 3 new searches (for 3 panels) like this:&lt;BR /&gt;
|rownum = 1 |timechart count(operation) by result&lt;BR /&gt;&lt;BR /&gt;
|rownum = 2 |timechart count(operation) by result&lt;BR /&gt;&lt;BR /&gt;
|rownum = 3 |timechart count(operation) by result  &lt;/P&gt;

&lt;P&gt;I don't want to use &lt;CODE&gt;| streamstats count as rownum&lt;/CODE&gt;, because it works very slowly. How can I make a search for panels? &lt;BR /&gt;
It will be good to use hidden search and then reuse its results in panels. &lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 09:36:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-exact-row-from-a-results-table-to-use-for-other/m-p/211695#M61928</guid>
      <dc:creator>belladonna</dc:creator>
      <dc:date>2016-06-16T09:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the exact row from a results table to use for other panel searches in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-exact-row-from-a-results-table-to-use-for-other/m-p/211696#M61929</link>
      <description>&lt;P&gt;Like this&lt;/P&gt;

&lt;P&gt;*&lt;STRONG&gt;&lt;EM&gt;For the first row&lt;/EM&gt;&lt;/STRONG&gt;*&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ... | head 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;*&lt;STRONG&gt;&lt;EM&gt;For the second row&lt;/EM&gt;&lt;/STRONG&gt;*&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | head 2 | tail | head 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;**** For the third row****&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | tail 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Jun 2016 12:57:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-exact-row-from-a-results-table-to-use-for-other/m-p/211696#M61929</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-06-16T12:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the exact row from a results table to use for other panel searches in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-exact-row-from-a-results-table-to-use-for-other/m-p/211697#M61930</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; index=prt result=*
 | eventstats c(eval(result!="")) as totalOp c(eval(result="OK")) as okOp by operation 
 | eval ratio=1-okOp/totalOp|stats max(ratio) as ratio by operation | sort 3 -ratio| head 1|timechart count(operation) by result 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;doesn't return anything &lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2016 11:06:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-exact-row-from-a-results-table-to-use-for-other/m-p/211697#M61930</guid>
      <dc:creator>belladonna</dc:creator>
      <dc:date>2016-06-17T11:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the exact row from a results table to use for other panel searches in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-exact-row-from-a-results-table-to-use-for-other/m-p/627730#M218111</link>
      <description>&lt;P&gt;Is there really no better way than this?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 12:21:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-exact-row-from-a-results-table-to-use-for-other/m-p/627730#M218111</guid>
      <dc:creator>spunk_enthusias</dc:creator>
      <dc:date>2023-01-20T12:21:41Z</dc:date>
    </item>
  </channel>
</rss>

