<?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 Box plot error in 'stats' command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Box-plot-error-in-stats-command/m-p/672358#M230309</link>
    <description>&lt;P&gt;I try to make box plot graph using &amp;lt;viz&amp;gt;&lt;/P&gt;&lt;P&gt;However, My code have this error,&lt;/P&gt;&lt;P&gt;"Error in 'stats' command: The number of wildcards between field specifier '*' and rename specifier 'lowerquartile' do not match. Note: empty field specifiers implies all fields, e.g. sum() == sum(*)"&lt;/P&gt;&lt;P&gt;and My code is this&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#993366"&gt;&amp;lt;viz &lt;/FONT&gt;type="viz_boxplot_app.boxplot"&lt;FONT color="#993366"&gt;&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993366"&gt;&amp;lt;search&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993366"&gt;&amp;lt;query&amp;gt;&lt;/FONT&gt;index=idx_prd_analysis sourcetype="type:prd_analysis:result" corp="AUS"&lt;BR /&gt;      | &lt;FONT color="#3366FF"&gt;eval&lt;/FONT&gt; total_time = End_time - Start_time&lt;BR /&gt;      | &lt;FONT color="#3366FF"&gt;stats&lt;/FONT&gt; &lt;FONT color="#FF00FF"&gt;median, min, max, p25&lt;/FONT&gt; &lt;FONT color="#FF9900"&gt;AS &lt;/FONT&gt;lowerquartile, &lt;FONT color="#FF00FF"&gt;p75 &lt;/FONT&gt;&lt;FONT color="#FF9900"&gt;AS&lt;/FONT&gt; upperquartile &lt;FONT color="#FF9900"&gt;by &lt;/FONT&gt;total_time&lt;BR /&gt;      | &lt;FONT color="#3366FF"&gt;eval&lt;/FONT&gt; iqr=upperquartile-lowerquartile&lt;BR /&gt;      | &lt;FONT color="#3366FF"&gt;eval&lt;/FONT&gt; lowerwhisker=median-(1.5*iqr)&lt;BR /&gt;      | &lt;FONT color="#3366FF"&gt;eval&lt;/FONT&gt; upperwhisker=median+(1.5*iqr)&lt;BR /&gt;&lt;FONT color="#993366"&gt;&amp;lt;/query&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993366"&gt;&amp;lt;earliest&amp;gt;&lt;/FONT&gt;$earliest$&lt;FONT color="#993366"&gt;&amp;lt;/earliest&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993366"&gt;&amp;lt;latest&amp;gt;&lt;/FONT&gt;$latest$&lt;FONT color="#993366"&gt;&amp;lt;/latest&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993366"&gt;&amp;lt;/search&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993366"&gt;&amp;lt;option name="drilldown"&amp;gt;&lt;/FONT&gt;all&lt;FONT color="#993366"&gt;&amp;lt;/option&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993366"&gt;&amp;lt;option name="refresh.display"&amp;gt;&lt;/FONT&gt;progressbar&lt;FONT color="#993366"&gt;&amp;lt;/option&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993366"&gt;&amp;lt;/viz&amp;gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I don't use any "eval" or string words at the "stats", But it happend.&lt;BR /&gt;How could I solve this problem?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Dec 2023 04:47:42 GMT</pubDate>
    <dc:creator>Questioner</dc:creator>
    <dc:date>2023-12-20T04:47:42Z</dc:date>
    <item>
      <title>Box plot error in 'stats' command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Box-plot-error-in-stats-command/m-p/672358#M230309</link>
      <description>&lt;P&gt;I try to make box plot graph using &amp;lt;viz&amp;gt;&lt;/P&gt;&lt;P&gt;However, My code have this error,&lt;/P&gt;&lt;P&gt;"Error in 'stats' command: The number of wildcards between field specifier '*' and rename specifier 'lowerquartile' do not match. Note: empty field specifiers implies all fields, e.g. sum() == sum(*)"&lt;/P&gt;&lt;P&gt;and My code is this&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#993366"&gt;&amp;lt;viz &lt;/FONT&gt;type="viz_boxplot_app.boxplot"&lt;FONT color="#993366"&gt;&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993366"&gt;&amp;lt;search&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993366"&gt;&amp;lt;query&amp;gt;&lt;/FONT&gt;index=idx_prd_analysis sourcetype="type:prd_analysis:result" corp="AUS"&lt;BR /&gt;      | &lt;FONT color="#3366FF"&gt;eval&lt;/FONT&gt; total_time = End_time - Start_time&lt;BR /&gt;      | &lt;FONT color="#3366FF"&gt;stats&lt;/FONT&gt; &lt;FONT color="#FF00FF"&gt;median, min, max, p25&lt;/FONT&gt; &lt;FONT color="#FF9900"&gt;AS &lt;/FONT&gt;lowerquartile, &lt;FONT color="#FF00FF"&gt;p75 &lt;/FONT&gt;&lt;FONT color="#FF9900"&gt;AS&lt;/FONT&gt; upperquartile &lt;FONT color="#FF9900"&gt;by &lt;/FONT&gt;total_time&lt;BR /&gt;      | &lt;FONT color="#3366FF"&gt;eval&lt;/FONT&gt; iqr=upperquartile-lowerquartile&lt;BR /&gt;      | &lt;FONT color="#3366FF"&gt;eval&lt;/FONT&gt; lowerwhisker=median-(1.5*iqr)&lt;BR /&gt;      | &lt;FONT color="#3366FF"&gt;eval&lt;/FONT&gt; upperwhisker=median+(1.5*iqr)&lt;BR /&gt;&lt;FONT color="#993366"&gt;&amp;lt;/query&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993366"&gt;&amp;lt;earliest&amp;gt;&lt;/FONT&gt;$earliest$&lt;FONT color="#993366"&gt;&amp;lt;/earliest&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993366"&gt;&amp;lt;latest&amp;gt;&lt;/FONT&gt;$latest$&lt;FONT color="#993366"&gt;&amp;lt;/latest&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993366"&gt;&amp;lt;/search&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993366"&gt;&amp;lt;option name="drilldown"&amp;gt;&lt;/FONT&gt;all&lt;FONT color="#993366"&gt;&amp;lt;/option&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993366"&gt;&amp;lt;option name="refresh.display"&amp;gt;&lt;/FONT&gt;progressbar&lt;FONT color="#993366"&gt;&amp;lt;/option&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993366"&gt;&amp;lt;/viz&amp;gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I don't use any "eval" or string words at the "stats", But it happend.&lt;BR /&gt;How could I solve this problem?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 04:47:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Box-plot-error-in-stats-command/m-p/672358#M230309</guid>
      <dc:creator>Questioner</dc:creator>
      <dc:date>2023-12-20T04:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Box plot error in 'stats' command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Box-plot-error-in-stats-command/m-p/672359#M230310</link>
      <description>&lt;P&gt;You may need to specify the "total_time" field as the field to return descriptive statistic on instead of using it as a by-field in this search.&lt;BR /&gt;&lt;BR /&gt;Something like this,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=idx_prd_analysis sourcetype="type:prd_analysis:result" corp="AUS"
    | eval
        total_time='End_time'-'Start_time'
    | stats
        median(total_time) as median,
        min(total_time) as min,
        max(total_time) as max,
        p25(total_time) as lowerquartile,
        p75(total_time) as upperquartile
    | eval
        iqr='upperquartile'-'lowerquartile',
        scalar=1.5,
        lowerwhisker='median'-('scalar'*'iqr'),
        upperwhisker='median'+('scalar'*'iqr')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 05:17:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Box-plot-error-in-stats-command/m-p/672359#M230310</guid>
      <dc:creator>dtburrows3</dc:creator>
      <dc:date>2023-12-20T05:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Box plot error in 'stats' command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Box-plot-error-in-stats-command/m-p/672361#M230311</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/263242"&gt;@dtburrows3&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you for your help.&lt;BR /&gt;It work!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 05:35:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Box-plot-error-in-stats-command/m-p/672361#M230311</guid>
      <dc:creator>Questioner</dc:creator>
      <dc:date>2023-12-20T05:35:14Z</dc:date>
    </item>
  </channel>
</rss>

