<?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: stats table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600068#M208890</link>
    <description>&lt;LI-CODE lang="markup"&gt;| eventstats count as namecount by name
| eventstats count as colorcount by color
| eventstats count as statuscount by status
| eval name=name."(".namecount.")"
| eval color=color."(".colorcount.")"
| eval status=status."(".statuscount.")"
| stats values(name) as name values(color) as color values(status) as status&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 01 Jun 2022 11:57:58 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-06-01T11:57:58Z</dc:date>
    <item>
      <title>What am I doing wrong with my stats table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600060#M208886</link>
      <description>&lt;P&gt;Hi I have table like this:&lt;/P&gt;
&lt;P&gt;name&amp;nbsp; &amp;nbsp; color&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;status&lt;/P&gt;
&lt;P&gt;jack&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; red&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fail&lt;/P&gt;
&lt;P&gt;jack&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; blue&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fail&lt;/P&gt;
&lt;P&gt;daniel&amp;nbsp; &amp;nbsp; green&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pass&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;expected output:&lt;/P&gt;
&lt;P&gt;name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;color&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;status&lt;/P&gt;
&lt;P&gt;jack(2)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;red(1)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fail(2)&lt;/P&gt;
&lt;P&gt;daniel(1)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;blue(1)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pass(1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;green(1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;any idea?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 15:32:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600060#M208886</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2022-06-01T15:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: stats table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600068#M208890</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eventstats count as namecount by name
| eventstats count as colorcount by color
| eventstats count as statuscount by status
| eval name=name."(".namecount.")"
| eval color=color."(".colorcount.")"
| eval status=status."(".statuscount.")"
| stats values(name) as name values(color) as color values(status) as status&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 Jun 2022 11:57:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600068#M208890</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-01T11:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: stats table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600070#M208891</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;need to sort each column from top to down.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 12:19:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600070#M208891</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2022-06-01T12:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: stats table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600074#M208892</link>
      <description>&lt;P&gt;multivalue fields returned by values() are sorted lexicographically so you might need to do some manipulation to get these values sorted in a different order&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eventstats count as namecount by name
| eventstats count as colorcount by color
| eventstats count as statuscount by status
| eval name=printf("%04u %s", 10000-namecount, name)
| eval color=printf("%04u %s", 10000-colorcount, color)
| eval status=printf("%04u %s", 10000-statuscount, status)
| stats values(name) as name values(color) as color values(status) as status
| eval name=mvmap(name,mvindex(split(name," "),1)."(".(10000-tonumber(mvindex(split(name," "),0))).")")
| eval color=mvmap(color,mvindex(split(color," "),1)."(".(10000-tonumber(mvindex(split(color," "),0))).")")
| eval status=mvmap(status,mvindex(split(status," "),1)."(".(10000-tonumber(mvindex(split(status," "),0))).")")&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 Jun 2022 13:02:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600074#M208892</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-01T13:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: stats table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600096#M208899</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Thank you for answer,&lt;/P&gt;&lt;P&gt;1-is it possible to do this with simpler SPL? e.g seperate count column?&lt;/P&gt;&lt;P&gt;2-is it possible add percentage beside count?&lt;/P&gt;&lt;P&gt;expected output:&lt;/P&gt;&lt;P&gt;name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;count&amp;nbsp; &amp;nbsp; &amp;nbsp;percentage&amp;nbsp; &amp;nbsp; color&amp;nbsp; &amp;nbsp; count&amp;nbsp; &amp;nbsp;percentage&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;jack&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;66.6&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;red&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 33.3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;daniel&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 33.3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;blue&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;33.3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; green&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;33.3&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 15:04:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600096#M208899</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2022-06-01T15:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: stats table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600101#M208902</link>
      <description>&lt;P&gt;Simpler SPL, yet you want a more complex output?&lt;/P&gt;&lt;P&gt;Your expected output is not possible because you have multiple fields with the same names.&lt;/P&gt;&lt;P&gt;Even if you had different names, you are trying to treat the fields in the events as independent from each other. To do this, you may have to split the fields into separate events, do your calculations, then recombine them into a single event - this is definitely not simpler.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 15:09:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600101#M208902</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-01T15:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: stats table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600106#M208905</link>
      <description>&lt;P&gt;how about this?&lt;/P&gt;&lt;P&gt;expected output:&lt;/P&gt;&lt;P&gt;Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cName&amp;nbsp; &amp;nbsp; &amp;nbsp;%Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Color&amp;nbsp; &amp;nbsp; cColor&amp;nbsp; &amp;nbsp;%Color&lt;/P&gt;&lt;P&gt;jack&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;66.6&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;red&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 33.3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;daniel&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 33.3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;blue&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;33.3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; green&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;33.3&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 15:30:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600106#M208905</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2022-06-01T15:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: stats table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600110#M208908</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eventstats count as namecount by name
| eventstats count as colorcount by color
| eventstats count as statuscount by status
| eventstats count(name) as nametotal
| eventstats count(color) as colortotal
| eventstats count(status) as statustotal
| eval name=printf("%04u %s %d", 10000-namecount, name, nametotal)
| eval color=printf("%04u %s %d", 10000-colorcount, color, colortotal)
| eval status=printf("%04u %s %d", 10000-statuscount, status, statustotal)
| stats values(name) as name values(color) as color values(status) as status
| eval cname=mvmap(name,10000-tonumber(mvindex(split(name," "),0)))
| eval ccolor=mvmap(color,10000-tonumber(mvindex(split(color," "),0)))
| eval cstatus=mvmap(status,10000-tonumber(mvindex(split(status," "),0)))
| eval pname=mvmap(name,100*(10000-tonumber(mvindex(split(name," "),0)))/tonumber(mvindex(split(name," "),2)))
| eval pcolor=mvmap(color,100*(10000-tonumber(mvindex(split(color," "),0)))/tonumber(mvindex(split(color," "),2)))
| eval pstatus=mvmap(status,100*(10000-tonumber(mvindex(split(status," "),0)))/tonumber(mvindex(split(status," "),2)))
| eval name=mvmap(name,mvindex(split(name," "),1))
| eval color=mvmap(color,mvindex(split(color," "),1))
| eval status=mvmap(status,mvindex(split(status," "),1))
| fields name cname pname color ccolor pcolor status cstatus pstatus&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 Jun 2022 15:45:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600110#M208908</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-01T15:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: stats table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600114#M208909</link>
      <description>&lt;P&gt;As separate events:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval fields=mvrange(1,4)
| mvexpand fields
| eval _count=0
| rename fields as _fields
| foreach *
    [| eval _count=_count+1
    | eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=if(_count=_fields,&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;,null())]
| rename _fields as fields
| eventstats count as cname by name
| eventstats count as ccolor by color
| eventstats count as cstatus by status
| eventstats count(name) as nametotal
| eventstats count(color) as colortotal
| eventstats count(status) as statustotal
| eval pname=round(100*cname/nametotal,1)
| eval pcolor=round(100*ccolor/colortotal,1)
| eval pstatus=round(100*cstatus/statustotal,1)
| sort 0 -cname -ccolor -cstatus
| uniq
| streamstats global=f count by fields
| fields - fields
| stats values(*) as * by count
| table name cname pname color ccolor pcolor status cstatus pstatus&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 Jun 2022 16:13:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600114#M208909</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-01T16:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: stats table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600126#M208913</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;about this line, how can i limit to 2 decimal places like this 33.33?&lt;/P&gt;&lt;PRE&gt;| eval pname=mvmap(name,100*(10000-tonumber(mvindex(split(name," "),0)))/tonumber(mvindex(split(name," "),2)))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 16:49:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600126#M208913</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2022-06-01T16:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: stats table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600133#M208916</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval pname=mvmap(name,round(100*(10000-tonumber(mvindex(split(name," "),0)))/tonumber(mvindex(split(name," "),2),2)))&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 Jun 2022 17:01:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600133#M208916</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-01T17:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: stats table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600135#M208917</link>
      <description>&lt;P&gt;does not work!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 17:11:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600135#M208917</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2022-06-01T17:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: stats table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600136#M208918</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval pname=mvmap(name,round(100*(10000-tonumber(mvindex(split(name," "),0)))/tonumber(mvindex(split(name," "),2)),2))&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 Jun 2022 17:13:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600136#M208918</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-01T17:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: stats table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600137#M208919</link>
      <description>&lt;P&gt;still not!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 17:20:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600137#M208919</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2022-06-01T17:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: stats table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600138#M208920</link>
      <description>&lt;P&gt;Really? It works for me&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 17:24:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600138#M208920</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-01T17:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: stats table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600157#M208926</link>
      <description>&lt;P&gt;you right it's typo, now fixed&lt;/P&gt;&lt;P&gt;i have some "date" or "color" like this:&amp;nbsp;'Mon May 30 00:00:00 USDT 2022' or&amp;nbsp; ''&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI: some of them contain space between &lt;SPAN&gt;Single quotation like this&amp;nbsp; 'Mon May 30 00:00:00 USDT 2022', some of them are empty just has Single quotation like this&amp;nbsp; ''&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;not show them correcty and won't calculate percentage of them.&lt;/P&gt;&lt;P&gt;current output:&lt;/P&gt;&lt;P&gt;Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cDate&amp;nbsp; &amp;nbsp; &amp;nbsp;%Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Color&amp;nbsp; &amp;nbsp; cColor&amp;nbsp; &amp;nbsp;%Color&lt;/P&gt;&lt;P&gt;'Mon&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;''&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Today'&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;33.0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'red'&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;66.0&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 19:02:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600157#M208926</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2022-06-01T19:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: stats table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600238#M208958</link>
      <description>&lt;P&gt;Thanks it work, i just add this to the beginning of spl to remove spaces that exist in fields and work perfectly.&lt;/P&gt;&lt;PRE&gt;... | rex mode=sed field=A "s/ //g"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 08:23:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600238#M208958</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2022-06-02T08:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: stats table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600242#M208960</link>
      <description>&lt;P&gt;Alternatively, where I have used a space to delimit parts in the printf and split, use a different character&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval name=printf("%04u|%s|%d", 10000-namecount, name, nametotal)
| eval cname=mvmap(name,10000-tonumber(mvindex(split(name,"|"),0)))
etc.&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Jun 2022 09:01:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600242#M208960</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-02T09:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: stats table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600252#M208962</link>
      <description>&lt;P&gt;i remove the part that i use in &lt;SPAN&gt;beginning&amp;nbsp;&lt;/SPAN&gt;and use your suggestion. work like charm &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 09:37:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-my-stats-table/m-p/600252#M208962</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2022-06-02T09:37:45Z</dc:date>
    </item>
  </channel>
</rss>

