<?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: Need help with a splunk search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-value-in-two-fields-based-on-their-name/m-p/628638#M218374</link>
    <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/94646"&gt;@phularah&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;did you tried with addtotals command (&lt;A href="https://splunkonbigdata.com/usage-of-splunk-commands-addtotals/" target="_blank"&gt;https://splunkonbigdata.com/usage-of-splunk-commands-addtotals/&lt;/A&gt;)?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jan 2023 16:03:48 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-01-27T16:03:48Z</dc:date>
    <item>
      <title>How to add value in two fields based on their name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-value-in-two-fields-based-on-their-name/m-p/628633#M218370</link>
      <description>&lt;P&gt;Hi, I would like to add value in two fields based on their name.&amp;nbsp; I want the output as sum of traffic_in#fw1+traffic_out#fw1 and so on by _time.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phularah_0-1674834255078.png" style="width: 588px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23593i4D32F37D3F61333D/image-dimensions/588x150?v=v2" width="588" height="150" role="button" title="phularah_0-1674834255078.png" alt="phularah_0-1674834255078.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 21:33:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-value-in-two-fields-based-on-their-name/m-p/628633#M218370</guid>
      <dc:creator>phularah</dc:creator>
      <dc:date>2023-01-27T21:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a splunk search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-value-in-two-fields-based-on-their-name/m-p/628638#M218374</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/94646"&gt;@phularah&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;did you tried with addtotals command (&lt;A href="https://splunkonbigdata.com/usage-of-splunk-commands-addtotals/" target="_blank"&gt;https://splunkonbigdata.com/usage-of-splunk-commands-addtotals/&lt;/A&gt;)?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 16:03:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-value-in-two-fields-based-on-their-name/m-p/628638#M218374</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-01-27T16:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a splunk search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-value-in-two-fields-based-on-their-name/m-p/628733#M218402</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;addtotals would add all the field values, which I don't want.&lt;/P&gt;&lt;P&gt;I want the sum of the fields in such a way that it only adds up the fw values, like traffic_infw1+traffic_outfw1,&amp;nbsp;traffic_infw2+traffic_outw2,&amp;nbsp;traffic_infw3+traffic_outfw3 and so on. Now, fw can change and so do their numbers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, if I have 10 fields initially, I should get 5 fields after the summation of required field values. and after that timechart would show 5 graphical lines.&lt;/P&gt;&lt;P&gt;Like in the screenshot shared in the question, I would want sum of field values of 1st and 5th field, 2nd and 6th, 3rd and 7th and 4th and 8th fields.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2023 05:15:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-value-in-two-fields-based-on-their-name/m-p/628733#M218402</guid>
      <dc:creator>phularah</dc:creator>
      <dc:date>2023-01-29T05:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to add value in two fields based on their name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-value-in-two-fields-based-on-their-name/m-p/628738#M218404</link>
      <description>&lt;P&gt;Something like this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| foreach traffic_*#*
    [eval "in_and_out#&amp;lt;&amp;lt;MATCHSEG2&amp;gt;&amp;gt;" = 'traffic_in#&amp;lt;&amp;lt;MATCHSEG2&amp;gt;&amp;gt;' + 'traffic_out#&amp;lt;&amp;lt;MATCHSEG2&amp;gt;&amp;gt;']&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 29 Jan 2023 06:52:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-value-in-two-fields-based-on-their-name/m-p/628738#M218404</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-01-29T06:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a splunk search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-value-in-two-fields-based-on-their-name/m-p/628746#M218408</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/94646"&gt;@phularah&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;if the field names are fixed, you can use eval to sum some selected values.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2023 08:09:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-value-in-two-fields-based-on-their-name/m-p/628746#M218408</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-01-29T08:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to add value in two fields based on their name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-value-in-two-fields-based-on-their-name/m-p/628749#M218409</link>
      <description>&lt;P&gt;Yes, that's exactly what I wanted.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2023 08:24:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-value-in-two-fields-based-on-their-name/m-p/628749#M218409</guid>
      <dc:creator>phularah</dc:creator>
      <dc:date>2023-01-29T08:24:13Z</dc:date>
    </item>
  </channel>
</rss>

