<?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: sum multiple fields based on the field only in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/sum-multiple-fields-based-on-the-field-only/m-p/556399#M158012</link>
    <description>&lt;LI-CODE lang="markup"&gt;index=firewall
| stats sum (bytes) as bytes , sum (in_packet) as in_packet, sum (out_packet) as out_packet&lt;/LI-CODE&gt;</description>
    <pubDate>Sun, 20 Jun 2021 08:00:46 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-06-20T08:00:46Z</dc:date>
    <item>
      <title>sum multiple fields based on the field only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sum-multiple-fields-based-on-the-field-only/m-p/556397#M158010</link>
      <description>&lt;P&gt;Hello Splunkers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in my firewall logs, i have three numerical fields, (out_packet, in_packet, bytes)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to sum these values each field individually but a i want the answer in one record&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;index=firewall&lt;BR /&gt;| timechart sum (bytes) as bytes , sum (in_packet) as in_packet, sum (out_packet) as out_packet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;unfortunately it didn't work, please help me with it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks ^_^&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jun 2021 07:55:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sum-multiple-fields-based-on-the-field-only/m-p/556397#M158010</guid>
      <dc:creator>moayadalghamdi</dc:creator>
      <dc:date>2021-06-20T07:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: sum multiple fields based on the field only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sum-multiple-fields-based-on-the-field-only/m-p/556399#M158012</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=firewall
| stats sum (bytes) as bytes , sum (in_packet) as in_packet, sum (out_packet) as out_packet&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 20 Jun 2021 08:00:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sum-multiple-fields-based-on-the-field-only/m-p/556399#M158012</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-06-20T08:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: sum multiple fields based on the field only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sum-multiple-fields-based-on-the-field-only/m-p/556400#M158013</link>
      <description>&lt;P&gt;Thanks for the prompt response ^_^&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but i need it in time chart for visualization, help me with it plz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks ^_ ^&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jun 2021 08:05:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sum-multiple-fields-based-on-the-field-only/m-p/556400#M158013</guid>
      <dc:creator>moayadalghamdi</dc:creator>
      <dc:date>2021-06-20T08:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: sum multiple fields based on the field only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sum-multiple-fields-based-on-the-field-only/m-p/556401#M158014</link>
      <description>&lt;P&gt;Stats will give you one record as you said. Timechart will give you lots of records (assuming the time span is wide enough). How are the results you originally had not what you wanted?&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jun 2021 08:24:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sum-multiple-fields-based-on-the-field-only/m-p/556401#M158014</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-06-20T08:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: sum multiple fields based on the field only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sum-multiple-fields-based-on-the-field-only/m-p/556404#M158015</link>
      <description>&lt;P&gt;Sorry, i just noticed that my post was confusing&lt;/P&gt;&lt;P&gt;what i want is to show the the trends of these three fields in a "line chart" visualization&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want the trend by any value of my choosing&lt;/P&gt;&lt;P&gt;for example i want like this, but with multiple fields based on the search&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="moayadalghamdi_2-1624177893382.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14694iF44E1CCC77FDCEEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="moayadalghamdi_2-1624177893382.png" alt="moayadalghamdi_2-1624177893382.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jun 2021 08:41:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sum-multiple-fields-based-on-the-field-only/m-p/556404#M158015</guid>
      <dc:creator>moayadalghamdi</dc:creator>
      <dc:date>2021-06-20T08:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: sum multiple fields based on the field only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sum-multiple-fields-based-on-the-field-only/m-p/556405#M158016</link>
      <description>&lt;P&gt;It is still not clear why timechart is not working for you&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jun 2021 08:53:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sum-multiple-fields-based-on-the-field-only/m-p/556405#M158016</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-06-20T08:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: sum multiple fields based on the field only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sum-multiple-fields-based-on-the-field-only/m-p/556406#M158017</link>
      <description>&lt;P&gt;wait, the problem if from my side, my log sources have missing data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry for that, BTW you helped my a lot in many posts, thanks whisperer ^_^&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jun 2021 08:55:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sum-multiple-fields-based-on-the-field-only/m-p/556406#M158017</guid>
      <dc:creator>moayadalghamdi</dc:creator>
      <dc:date>2021-06-20T08:55:44Z</dc:date>
    </item>
  </channel>
</rss>

