<?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 do you subtract values from an appended search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-subtract-values-from-an-appended-search/m-p/454667#M128639</link>
    <description>&lt;P&gt;@jephillips &lt;BR /&gt;
Great &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Please accept the answer to close the thread.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Feb 2019 06:15:40 GMT</pubDate>
    <dc:creator>vishaltaneja070</dc:creator>
    <dc:date>2019-02-07T06:15:40Z</dc:date>
    <item>
      <title>How do you subtract values from an appended search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-subtract-values-from-an-appended-search/m-p/454663#M128635</link>
      <description>&lt;P&gt;I'm trying to run the below searches and get the subtracted value from them. However, the eval command is not giving me a new Difference field. I just get the results of the separate searches. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=a sourcetype=test start=* end=* | eventstats count as Total1
| append [search index=a sourcetype=test start=* end=* xfer=* | eventstats count as Total2]
| eval Difference=Total1 - Total2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'd like a chart that with a row for all three values.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Total1        Total2          Difference
10               8                   2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Feb 2019 14:13:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-subtract-values-from-an-appended-search/m-p/454663#M128635</guid>
      <dc:creator>jephillips</dc:creator>
      <dc:date>2019-02-06T14:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do you subtract values from an appended search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-subtract-values-from-an-appended-search/m-p/454664#M128636</link>
      <description>&lt;P&gt;Hello @jephillips ,&lt;/P&gt;

&lt;P&gt;Try this: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=a sourcetype=test start= end= | stats count as Total1
| appendcols [search index=a sourcetype=test start= end= xfer=* | stats count as Total2]
| eval Difference=Total1 - Total2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Feb 2019 14:46:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-subtract-values-from-an-appended-search/m-p/454664#M128636</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2019-02-06T14:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do you subtract values from an appended search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-subtract-values-from-an-appended-search/m-p/454665#M128637</link>
      <description>&lt;P&gt;That did it! Thanks for the help. &lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 14:49:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-subtract-values-from-an-appended-search/m-p/454665#M128637</guid>
      <dc:creator>jephillips</dc:creator>
      <dc:date>2019-02-06T14:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do you subtract values from an appended search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-subtract-values-from-an-appended-search/m-p/454666#M128638</link>
      <description>&lt;P&gt;You can try the below search-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=a sourcetype=test start= end= | stats count as Total1
| appendcols [search index=a sourcetype=test start= end= xfer=* | stats count as Total2]
| eval Difference=Total1 - Total2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Feb 2019 14:51:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-subtract-values-from-an-appended-search/m-p/454666#M128638</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-02-06T14:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do you subtract values from an appended search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-subtract-values-from-an-appended-search/m-p/454667#M128639</link>
      <description>&lt;P&gt;@jephillips &lt;BR /&gt;
Great &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Please accept the answer to close the thread.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 06:15:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-subtract-values-from-an-appended-search/m-p/454667#M128639</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2019-02-07T06:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do you subtract values from an appended search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-subtract-values-from-an-appended-search/m-p/454668#M128640</link>
      <description>&lt;P&gt;Be sure to click &lt;CODE&gt;Accept&lt;/CODE&gt; to close the question and help others find working answers.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 16:42:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-subtract-values-from-an-appended-search/m-p/454668#M128640</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-08T16:42:28Z</dc:date>
    </item>
  </channel>
</rss>

