<?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: Error with subsearch in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Error-with-subsearch/m-p/138807#M38131</link>
    <description>&lt;P&gt;Nice catch &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; , updated answer to correct this.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Apr 2014 17:49:36 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-04-22T17:49:36Z</dc:date>
    <item>
      <title>Error with subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-with-subsearch/m-p/138803#M38127</link>
      <description>&lt;P&gt;I am new to creating subsearches and have completed a few of them successfully. This latest example is causing me a bit of greif. &lt;/P&gt;

&lt;P&gt;I am trying to &lt;BR /&gt;
 1. do a stats count to provide error count in one search&lt;BR /&gt;
 2. sum a value to create a transaction count from a different data source&lt;BR /&gt;
 3. display the results in a table or chart like below&lt;/P&gt;

&lt;P&gt;transactions   10000&lt;BR /&gt;
errors         100&lt;/P&gt;

&lt;P&gt;Here is my search&lt;BR /&gt;
index=dspro sourcetype=telemetry | chart sum(TotalTransactions) as transaction_count [search index=dspro sourcetype=bootlogmaster (DSproSystem=Prod OR DSproSystem=Beta OR DSproSystem=Alph) | stats count as error_count] | chart, transaction_count, error_count&lt;/P&gt;

&lt;P&gt;Here is the error it generates&lt;BR /&gt;
Error in 'chart' command: The argument '( ( error_count=25045 ) )' is invalid. &lt;/P&gt;

&lt;P&gt;Eventually I will want to create a third line in the chart that provides the percentage of errors. &lt;/P&gt;

&lt;P&gt;Please help&lt;/P&gt;

&lt;P&gt;Thank you&lt;BR /&gt;
Don&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:26:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-with-subsearch/m-p/138803#M38127</guid>
      <dc:creator>DonDandrea</dc:creator>
      <dc:date>2020-09-28T16:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error with subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-with-subsearch/m-p/138804#M38128</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=dspro (sourcetype=telemetry) OR (sourcetype=bootlogmaster (DSproSystem=Prod OR DSproSystem=Beta OR DSproSystem=Alph)) | stats sum(TotalTransactions) as transaction_count count(eval(sourcetype="bootlogmaster")) as error_count 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Apr 2014 17:33:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-with-subsearch/m-p/138804#M38128</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-04-22T17:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error with subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-with-subsearch/m-p/138805#M38129</link>
      <description>&lt;P&gt;I think you should replace &lt;CODE&gt;count(eval(sourcetype="telemetry"))&lt;/CODE&gt; with &lt;CODE&gt;sum(TotalTransactions)&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 17:46:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-with-subsearch/m-p/138805#M38129</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-04-22T17:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error with subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-with-subsearch/m-p/138806#M38130</link>
      <description>&lt;P&gt;That definately is a step closer. The only problem is that is doing a stats count to determine a value for transaction count. Transaction count needs to be determined by adding together all the values for the field TotalTransactions from the telemetry data.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 17:49:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-with-subsearch/m-p/138806#M38130</guid>
      <dc:creator>DonDandrea</dc:creator>
      <dc:date>2014-04-22T17:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error with subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-with-subsearch/m-p/138807#M38131</link>
      <description>&lt;P&gt;Nice catch &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; , updated answer to correct this.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 17:49:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-with-subsearch/m-p/138807#M38131</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-04-22T17:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error with subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-with-subsearch/m-p/138808#M38132</link>
      <description>&lt;P&gt;Now we're talking. Thank you very much. You guys are awesome.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2014 11:12:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-with-subsearch/m-p/138808#M38132</guid>
      <dc:creator>DonDandrea</dc:creator>
      <dc:date>2014-04-23T11:12:36Z</dc:date>
    </item>
  </channel>
</rss>

