<?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: getting sum of a multivalues field for ach event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/getting-sum-of-a-multivalues-field-for-ach-event/m-p/466984#M131425</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;index=linux sourcetype=iostat mount="*"
| streamstats window=1 sum(total_ops) as total_ops
| stats sum(total_ops) as total_ops by mount host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 15 Feb 2020 04:23:09 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-02-15T04:23:09Z</dc:date>
    <item>
      <title>getting sum of a multivalues field for ach event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/getting-sum-of-a-multivalues-field-for-ach-event/m-p/466982#M131423</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a query like below.&lt;/P&gt;

&lt;P&gt;index=linux sourcetype=iostat mount="*" &lt;BR /&gt;
which will list total_ops for each mount of a host in multiple events.&lt;/P&gt;

&lt;P&gt;i need to get sum of total_ops of each host of all mounts from latest event.&lt;/P&gt;

&lt;P&gt;Please help&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 13:51:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/getting-sum-of-a-multivalues-field-for-ach-event/m-p/466982#M131423</guid>
      <dc:creator>vijaya5</dc:creator>
      <dc:date>2020-02-14T13:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: getting sum of a multivalues field for ach event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/getting-sum-of-a-multivalues-field-for-ach-event/m-p/466983#M131424</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=linux sourcetype=iostat mount="*" | mvexpand total_ops
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That will break the multivalue field into separate events. Then you can add your stats, etc.&lt;BR /&gt;
Worth noting, you can only use mvexpand on a single field.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 15:41:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/getting-sum-of-a-multivalues-field-for-ach-event/m-p/466983#M131424</guid>
      <dc:creator>codebuilder</dc:creator>
      <dc:date>2020-02-14T15:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: getting sum of a multivalues field for ach event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/getting-sum-of-a-multivalues-field-for-ach-event/m-p/466984#M131425</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=linux sourcetype=iostat mount="*"
| streamstats window=1 sum(total_ops) as total_ops
| stats sum(total_ops) as total_ops by mount host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 Feb 2020 04:23:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/getting-sum-of-a-multivalues-field-for-ach-event/m-p/466984#M131425</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-15T04:23:09Z</dc:date>
    </item>
  </channel>
</rss>

