<?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: How is it possible to assign the result of the | append [ subsearch ] in a constant? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-is-it-possible-to-assign-the-result-of-the-append-subsearch/m-p/233281#M69255</link>
    <description>&lt;P&gt;Are you looking to add a new field (in your main search result) which will have sum of values of a column (which you're adding through an append subsearch? If yes then try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your main search  | eventstats sum(field1) as TotalField1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 06 May 2016 15:51:14 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-05-06T15:51:14Z</dc:date>
    <item>
      <title>How is it possible to assign the result of the | append [ subsearch ] in a constant?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-is-it-possible-to-assign-the-result-of-the-append-subsearch/m-p/233280#M69254</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a search and an | append [subsearch] which adds at the bottom of the results (see image) a new row with the sum of the values per every column. &lt;BR /&gt;
Is there a way to assign those results (see 1317 in the image provided) in a constant or a field (through an eval maybe)?&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1317i4C2752209196B427/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Skender&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 14:59:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-is-it-possible-to-assign-the-result-of-the-append-subsearch/m-p/233280#M69254</guid>
      <dc:creator>skender27</dc:creator>
      <dc:date>2016-05-06T14:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: How is it possible to assign the result of the | append [ subsearch ] in a constant?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-is-it-possible-to-assign-the-result-of-the-append-subsearch/m-p/233281#M69255</link>
      <description>&lt;P&gt;Are you looking to add a new field (in your main search result) which will have sum of values of a column (which you're adding through an append subsearch? If yes then try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your main search  | eventstats sum(field1) as TotalField1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 May 2016 15:51:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-is-it-possible-to-assign-the-result-of-the-append-subsearch/m-p/233281#M69255</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-05-06T15:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: How is it possible to assign the result of the | append [ subsearch ] in a constant?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-is-it-possible-to-assign-the-result-of-the-append-subsearch/m-p/233282#M69256</link>
      <description>&lt;P&gt;If you are saying to give the last row a name for the leading field without knowing the name of the field/column, you can do this will &lt;CODE&gt;fillnull&lt;/CODE&gt; like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | fillnull value="Total"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 07 May 2016 13:30:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-is-it-possible-to-assign-the-result-of-the-append-subsearch/m-p/233282#M69256</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-07T13:30:00Z</dc:date>
    </item>
  </channel>
</rss>

