<?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: Module Hiddensearch  help in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Module-Hiddensearch-help/m-p/74017#M3979</link>
    <description>&lt;P&gt;You cannot do this.  Splunk's HiddenSearch and Sideview's Search module each only take one "search" param.   &lt;/P&gt;

&lt;P&gt;What you should do is try and combine the logic so that one search, with one set of eval/stats commands, gets you all three results.    Feel free to post the three searches as a separate question and we can try and help you to do that. &lt;/P&gt;

&lt;P&gt;Or break it into three separate Search modules and three separate HTML modules.  (Note that since you're using Sideview Utils anyway in this view there's no reason to use the old HiddenSearch module over the newer Search)&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;UPDATE&lt;BR /&gt;
based on the three searches you posted, here are details on how to combine them. &lt;/P&gt;

&lt;P&gt;However I'm going to build to it from simpler examples. &lt;/P&gt;

&lt;P&gt;1) Let me start with combining just the first two in the most straightforward way possible.  The GET/POST should definitely be extracted as a field, and there's a good chance that it's been extracted as a field already called 'method'. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype="sampledata" (method=POST OR method=GET) | stats count by method&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;That will get you two rows, one for GET and one for POST.  &lt;/P&gt;

&lt;P&gt;2) The following builds from there, and gets you a single row,  where the GET is a field called 'Requests' and the POST count is a field called Responses. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype=access_combined (method=POST OR method=GET) | stats count by method | eval foo="1" | xyseries foo method count | fields - foo | rename GET as Requests POST as Responses&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;3) and last but not least,  to put all three together,  requires a little more fun: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype=sampledata (method="POST" OR method="GET" OR action="purchase*") | eval type=if(substr(action,0,8)=="purchase","Purchase",method) | stats count by type | eval foo="1" | xyseries foo type count | fields - foo | rename GET as requests POST as responses Purchase as "NoofPurchases"&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jun 2012 16:33:34 GMT</pubDate>
    <dc:creator>sideview</dc:creator>
    <dc:date>2012-06-13T16:33:34Z</dc:date>
    <item>
      <title>Module Hiddensearch  help</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Module-Hiddensearch-help/m-p/74016#M3978</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;I have created a view to display my search results..i have three search queries say Query1,Query2 and Query3 . Now i need to display these search query results in a tabular format ..so i have used the html tag like this in the module....but its not workin ...please help on this.&lt;/P&gt;

&lt;P&gt;My three queries are :&lt;/P&gt;

&lt;P&gt;Query1 : soucetype="x" somelogic  | stats count as A&lt;BR /&gt;
Query2 : soucetype="y" somelogic  | stats count as B&lt;BR /&gt;
Query3 : soucetype="z" somelogic  | stats count as C&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="HiddenSearch" layoutpanel="panel_row1_col1_grp1" autorun="True" group="Server 1"&gt;&lt;BR /&gt;&lt;BR /&gt;
      &lt;OBJECT&gt;&lt;PARAM name="search" /&gt;soucetype="x" somelogic  | stats count as A&lt;BR /&gt;
      &lt;PARAM name="search" /&gt;soucetype="y" somelogic  | stats count as B&lt;BR /&gt;
          &lt;PARAM name="search" /&gt;soucetype="z" somelogic  | stats count as C&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;module name="HTML"&amp;gt;
      &amp;lt;param name="html"&amp;gt;
      &amp;lt;![CDATA[
      &amp;lt;center&amp;gt;
      &amp;lt;table&amp;gt;
            &amp;lt;tr&amp;gt;
                     &amp;lt;th&amp;gt;A Count &amp;lt;/th&amp;gt;
         &amp;lt;th&amp;gt;B Count&amp;lt;/th&amp;gt;
         &amp;lt;th&amp;gt;C Count&amp;lt;/th&amp;gt;
     &amp;lt;/tr&amp;gt;
      &amp;lt;tr&amp;gt; 
      &amp;lt;td&amp;gt;$results[0].A$&amp;lt;/td&amp;gt;
       &amp;lt;td&amp;gt;$results[0].B$&amp;lt;/td&amp;gt;
      &amp;lt;td&amp;gt;$results[0].C$&amp;lt;/td&amp;gt;
      &amp;lt;/tr&amp;gt;


      &amp;lt;/table&amp;gt;



      &amp;lt;/center&amp;gt;
      ]]&amp;gt;
      &amp;lt;/param&amp;gt;
  &amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Its Working fine when i have only one search query inside the module ..but not working for three param tags..need help on this asap..thnx&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2012 14:22:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Module-Hiddensearch-help/m-p/74016#M3978</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-06-13T14:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Module Hiddensearch  help</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Module-Hiddensearch-help/m-p/74017#M3979</link>
      <description>&lt;P&gt;You cannot do this.  Splunk's HiddenSearch and Sideview's Search module each only take one "search" param.   &lt;/P&gt;

&lt;P&gt;What you should do is try and combine the logic so that one search, with one set of eval/stats commands, gets you all three results.    Feel free to post the three searches as a separate question and we can try and help you to do that. &lt;/P&gt;

&lt;P&gt;Or break it into three separate Search modules and three separate HTML modules.  (Note that since you're using Sideview Utils anyway in this view there's no reason to use the old HiddenSearch module over the newer Search)&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;UPDATE&lt;BR /&gt;
based on the three searches you posted, here are details on how to combine them. &lt;/P&gt;

&lt;P&gt;However I'm going to build to it from simpler examples. &lt;/P&gt;

&lt;P&gt;1) Let me start with combining just the first two in the most straightforward way possible.  The GET/POST should definitely be extracted as a field, and there's a good chance that it's been extracted as a field already called 'method'. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype="sampledata" (method=POST OR method=GET) | stats count by method&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;That will get you two rows, one for GET and one for POST.  &lt;/P&gt;

&lt;P&gt;2) The following builds from there, and gets you a single row,  where the GET is a field called 'Requests' and the POST count is a field called Responses. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype=access_combined (method=POST OR method=GET) | stats count by method | eval foo="1" | xyseries foo method count | fields - foo | rename GET as Requests POST as Responses&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;3) and last but not least,  to put all three together,  requires a little more fun: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype=sampledata (method="POST" OR method="GET" OR action="purchase*") | eval type=if(substr(action,0,8)=="purchase","Purchase",method) | stats count by type | eval foo="1" | xyseries foo type count | fields - foo | rename GET as requests POST as responses Purchase as "NoofPurchases"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2012 16:33:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Module-Hiddensearch-help/m-p/74017#M3979</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2012-06-13T16:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Module Hiddensearch  help</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Module-Hiddensearch-help/m-p/74018#M3980</link>
      <description>&lt;P&gt;My three queries are &lt;/P&gt;

&lt;P&gt;sourcetype="sampledata"  GET | stats count as Req&lt;/P&gt;

&lt;P&gt;sourcetype="sampledata"  POST | stats count as Res&lt;/P&gt;

&lt;P&gt;sourcetype="sampledata"  action=purchase* | stats count as Purchase&lt;/P&gt;

&lt;P&gt;I would like  to show these queries in a table format like this..&lt;/P&gt;

&lt;P&gt;RequestCount| ResponseCount | NoofPurchases&lt;/P&gt;

&lt;P&gt;45              56            90&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2012 17:59:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Module-Hiddensearch-help/m-p/74018#M3980</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-06-13T17:59:43Z</dc:date>
    </item>
  </channel>
</rss>

