<?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 Add Values from Rows in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Add-Values-from-Rows/m-p/397742#M6784</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm trying to add values from rows. See the picture below. &lt;IMG src="https://community.splunk.com/storage/temp/263611-example.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;What I am pretty much trying to do is add the count from unconfirmed_down status to the up status. The thing is is that the unconfirmed_down status isn't always there depending on the source I am pulling from and could vary from month to month, so I need to have an exception included in case it is not there. I have though have saying add field 1 to field 2, but that could produce incorrect results if that particular status is not there...&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 22:42:03 GMT</pubDate>
    <dc:creator>dfrench151</dc:creator>
    <dc:date>2020-09-29T22:42:03Z</dc:date>
    <item>
      <title>Add Values from Rows</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Add-Values-from-Rows/m-p/397742#M6784</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm trying to add values from rows. See the picture below. &lt;IMG src="https://community.splunk.com/storage/temp/263611-example.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;What I am pretty much trying to do is add the count from unconfirmed_down status to the up status. The thing is is that the unconfirmed_down status isn't always there depending on the source I am pulling from and could vary from month to month, so I need to have an exception included in case it is not there. I have though have saying add field 1 to field 2, but that could produce incorrect results if that particular status is not there...&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:42:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Add-Values-from-Rows/m-p/397742#M6784</guid>
      <dc:creator>dfrench151</dc:creator>
      <dc:date>2020-09-29T22:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Add Values from Rows</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Add-Values-from-Rows/m-p/397743#M6785</link>
      <description>&lt;P&gt;@dfrench151 can you try the following?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;yourIndexName&amp;gt;
| eval status=if(status=="unconfirmed_down","up",status)
| stats count by status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 12 Jan 2019 17:13:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Add-Values-from-Rows/m-p/397743#M6785</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-01-12T17:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Add Values from Rows</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Add-Values-from-Rows/m-p/397744#M6786</link>
      <description>&lt;P&gt;This only produced that status for up and count unfortunately&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jan 2019 17:51:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Add-Values-from-Rows/m-p/397744#M6786</guid>
      <dc:creator>dfrench151</dc:creator>
      <dc:date>2019-01-12T17:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Add Values from Rows</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Add-Values-from-Rows/m-p/397745#M6787</link>
      <description>&lt;P&gt;The above should move unconfirmed_down as up and remaining up and down status intact. So final sum should be only up and down status. Is your expectation different &lt;BR /&gt;
?&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jan 2019 18:39:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Add-Values-from-Rows/m-p/397745#M6787</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-01-12T18:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Add Values from Rows</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Add-Values-from-Rows/m-p/397746#M6788</link>
      <description>&lt;P&gt;Sorry about that. I re-ran that and it did what  I needed. Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jan 2019 19:21:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Add-Values-from-Rows/m-p/397746#M6788</guid>
      <dc:creator>dfrench151</dc:creator>
      <dc:date>2019-01-12T19:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Add Values from Rows</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Add-Values-from-Rows/m-p/397747#M6789</link>
      <description>&lt;P&gt;No problem. Glad it worked!&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jan 2019 06:57:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Add-Values-from-Rows/m-p/397747#M6789</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-01-13T06:57:41Z</dc:date>
    </item>
  </channel>
</rss>

