<?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: Help with making stats table in decreasing order in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-making-stats-table-in-decreasing-order/m-p/644664#M223245</link>
    <description>&lt;P&gt;You're asking the &lt;FONT face="courier new,courier"&gt;sort&lt;/FONT&gt; command to sort on a field that doesn't exist (count).&amp;nbsp; Choose either CPU or JobName for the sort.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=jia source="/hptc_cluster/splunk/Reports/PBS/splunkresults.csv" host="gridmetrics" sourcetype="JiaGridMetrics"
| stats count as CPU by JobName
| addcoltotals label=Total labelfield=JobName
| sort - CPU&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 May 2023 16:38:43 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-05-25T16:38:43Z</dc:date>
    <item>
      <title>Help with making stats table in decreasing order</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-making-stats-table-in-decreasing-order/m-p/644652#M223244</link>
      <description>&lt;P&gt;I am looking for the table to be in decreasing order and with the Total row on top.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my current search.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=jia source="/hptc_cluster/splunk/Reports/PBS/splunkresults.csv" host="gridmetrics" sourcetype="JiaGridMetrics"
| stats count as Slots by JobName
| rename Slots as CPU
| addcoltotals label=Total labelfield=JobName
| sort count desc&lt;/LI-CODE&gt;&lt;P&gt;This is the output.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jialiu907_0-1685026069032.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25547i686080F44F1A2C4A/image-size/large?v=v2&amp;amp;px=999" role="button" title="jialiu907_0-1685026069032.png" alt="jialiu907_0-1685026069032.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 14:48:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-making-stats-table-in-decreasing-order/m-p/644652#M223244</guid>
      <dc:creator>jialiu907</dc:creator>
      <dc:date>2023-05-25T14:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with making stats table in decreasing order</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-making-stats-table-in-decreasing-order/m-p/644664#M223245</link>
      <description>&lt;P&gt;You're asking the &lt;FONT face="courier new,courier"&gt;sort&lt;/FONT&gt; command to sort on a field that doesn't exist (count).&amp;nbsp; Choose either CPU or JobName for the sort.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=jia source="/hptc_cluster/splunk/Reports/PBS/splunkresults.csv" host="gridmetrics" sourcetype="JiaGridMetrics"
| stats count as CPU by JobName
| addcoltotals label=Total labelfield=JobName
| sort - CPU&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 16:38:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-making-stats-table-in-decreasing-order/m-p/644664#M223245</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-05-25T16:38:43Z</dc:date>
    </item>
  </channel>
</rss>

