<?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: List sum of fields across events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/List-sum-of-fields-across-events/m-p/56506#M13847</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;... | stats sum(qs_*) | transpose
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;should do it.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Sep 2010 08:18:54 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2010-09-23T08:18:54Z</dc:date>
    <item>
      <title>List sum of fields across events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-sum-of-fields-across-events/m-p/56505#M13846</link>
      <description>&lt;P&gt;This seems like it would be easy. Maybe it is, and I'm being thick today. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Log lines look like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... server1 qs_queue1=50 qs_queue3=60 qs_queue10=100
... server2 qs_queue4=50 qs_queue6=10 qs_queue10=150
... server3 qs_queue1=20 qs_queue4=70 qs_queue3=150
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to create a chart that will list each distinct qs_* field in rows with the sum of all values for that particular qs_ field in the searched time frame listed next to it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;qs_queue10    250
qs_queue1     70
qs_queue4     120
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;... etc.&lt;/P&gt;

&lt;P&gt;The chart command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | chart sum(qs_*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;charts in the wrong orientation in 2 rows, with the qs_ fields along the top row, and their values in the 2nd row. Same data being displayed, but in a far less presentable way.&lt;/P&gt;

&lt;P&gt;TIA,
jon&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2010 07:59:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-sum-of-fields-across-events/m-p/56505#M13846</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2010-09-23T07:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: List sum of fields across events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-sum-of-fields-across-events/m-p/56506#M13847</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;... | stats sum(qs_*) | transpose
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;should do it.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2010 08:18:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-sum-of-fields-across-events/m-p/56506#M13847</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-09-23T08:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: List sum of fields across events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-sum-of-fields-across-events/m-p/56507#M13848</link>
      <description>&lt;P&gt;Crikey, should have found that. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2010 08:39:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-sum-of-fields-across-events/m-p/56507#M13848</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2010-09-23T08:39:50Z</dc:date>
    </item>
  </channel>
</rss>

