<?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: Multiple Stats from Base Search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Multiple-Stats-from-Base-Search/m-p/523578#M147670</link>
    <description>&lt;P&gt;Hey, Thanks for the suggestion &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; Unfortunately it doesn't work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp; I had to remove the OR X and AND X from the searchmatch and then it just returned the same results as the original.&amp;nbsp; Appreciated though.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Oct 2020 05:39:04 GMT</pubDate>
    <dc:creator>cdstealer</dc:creator>
    <dc:date>2020-10-08T05:39:04Z</dc:date>
    <item>
      <title>Multiple Stats from Base Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-Stats-from-Base-Search/m-p/523470#M147619</link>
      <description>&lt;P&gt;Hi,&amp;nbsp; I'm trying to populate a dashboard using a base search and then pulling multiple stats from those results.&lt;/P&gt;&lt;P&gt;base search:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=production sourcetype="audit" environ::LV&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;inline search:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| appendpipe 
    [ stats count AS Total by _time] 
| appendpipe 
    [ search ("Error:" OR auditType="error") 
    | stats count AS error by _time] 
| appendpipe 
    [ where auditMicroSeconds&amp;gt;3 
    | stats count AS Over BY _time] 
| appendpipe 
    [ search ("data retrieval" AND "failed") 
    | stats count AS failed BY _time] 
| timechart span=30s count(Total) AS Total count(error) AS Error count(Over) AS Over&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;But it just doesn't work.&amp;nbsp; Hope this makes sense.&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 07:02:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-Stats-from-Base-Search/m-p/523470#M147619</guid>
      <dc:creator>cdstealer</dc:creator>
      <dc:date>2020-10-08T07:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Stats from Base Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-Stats-from-Base-Search/m-p/523484#M147623</link>
      <description>&lt;P&gt;Would something like this get you what you want?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=production sourcetype="audit" environ::LV
| eval error=if(searchmatch ("Error:" OR auditType="error"),1,null())
| eval Over=if(auditMicroSeconds&amp;gt;3,1,null()) 
| eval failed=if(searchmatch ("data retrieval" AND "failed"),1,null())
| timechart span=30s count AS Total count(error) AS Error count(Over) AS Over&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 07 Oct 2020 16:38:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-Stats-from-Base-Search/m-p/523484#M147623</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-07T16:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Stats from Base Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-Stats-from-Base-Search/m-p/523578#M147670</link>
      <description>&lt;P&gt;Hey, Thanks for the suggestion &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; Unfortunately it doesn't work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp; I had to remove the OR X and AND X from the searchmatch and then it just returned the same results as the original.&amp;nbsp; Appreciated though.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 05:39:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-Stats-from-Base-Search/m-p/523578#M147670</guid>
      <dc:creator>cdstealer</dc:creator>
      <dc:date>2020-10-08T05:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Stats from Base Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-Stats-from-Base-Search/m-p/523658#M147708</link>
      <description>&lt;P&gt;Solving my own question &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Base search is now:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=production sourcetype="audit" environ::LV | table *&lt;/LI-CODE&gt;&lt;P&gt;and panel searches are:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| search (field=value OR field=value OR field=value) field=value 
| appendpipe 
    [stats count AS total by _time] 
| appendpipe 
    [search auditType="error" 
    | stats count AS error by _time] 
| appendpipe 
    [where auditMicroSeconds&amp;gt;3 
    | stats count AS over BY _time] 
| appendpipe 
    [search ("data retrieval" AND "failed") 
    | stats count AS failed BY _time] 
| timechart span=30s count(error) AS Error count(over) AS Over3s count(failed) AS Failed count(total) AS Total&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Data is now being presented as expected &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 11:03:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-Stats-from-Base-Search/m-p/523658#M147708</guid>
      <dc:creator>cdstealer</dc:creator>
      <dc:date>2020-10-08T11:03:58Z</dc:date>
    </item>
  </channel>
</rss>

