<?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 to subtract or minus the values in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-subtract-or-minus-the-values/m-p/557420#M6244</link>
    <description>&lt;LI-CODE lang="markup"&gt;| transpose 0 header_field=message
| eval Failures='message: Start of Flow CreateUser flow'-'message: All system calls for CREATE user is completed'
| transpose 0 column_name=message header_field=column&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 28 Jun 2021 13:02:35 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-06-28T13:02:35Z</dc:date>
    <item>
      <title>How to subtract or minus the values</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-subtract-or-minus-the-values/m-p/557418#M6243</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;I have a query called:&lt;BR /&gt;&lt;STRONG&gt;host="mule1" OR host="mule2"&amp;nbsp;Message="message: Start of Flow CreateUser flow" OR Message="message: All system calls for CREATE user is completed" | stats count by Message&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phanichintha_0-1624883529929.png" style="width: 730px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14843i26ADC26E11FB236B/image-dimensions/730x50?v=v2" width="730" height="50" role="button" title="phanichintha_0-1624883529929.png" alt="phanichintha_0-1624883529929.png" /&gt;&lt;/span&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But here I want in the output the third row should be Failures under Message column and First column minus(-) Second column count in Third column count.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 12:39:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-subtract-or-minus-the-values/m-p/557418#M6243</guid>
      <dc:creator>phanichintha</dc:creator>
      <dc:date>2021-06-28T12:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract or minus the values</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-subtract-or-minus-the-values/m-p/557420#M6244</link>
      <description>&lt;LI-CODE lang="markup"&gt;| transpose 0 header_field=message
| eval Failures='message: Start of Flow CreateUser flow'-'message: All system calls for CREATE user is completed'
| transpose 0 column_name=message header_field=column&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 28 Jun 2021 13:02:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-subtract-or-minus-the-values/m-p/557420#M6244</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-06-28T13:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract or minus the values</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-subtract-or-minus-the-values/m-p/557421#M6245</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;thanks for the swift response, i got the exact results.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 13:14:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-subtract-or-minus-the-values/m-p/557421#M6245</guid>
      <dc:creator>phanichintha</dc:creator>
      <dc:date>2021-06-28T13:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract or minus the values</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-subtract-or-minus-the-values/m-p/675983#M18542</link>
      <description>&lt;P&gt;I have a similar problem but i have to do it recursively e.g. 2nd row - 1st row, 4th - 3rd row, 6th - 5th and so on and so forth e.g. how can we do it in Splunk ( I am doing a workaround and exporting to Excel and then using = A2-A1, A4-A3). Is it possible to do it in the query itself.&lt;/P&gt;&lt;P&gt;Value&lt;/P&gt;&lt;P&gt;43&lt;/P&gt;&lt;P&gt;65.&amp;nbsp; &amp;nbsp; &amp;nbsp;= 22&lt;/P&gt;&lt;P&gt;24&lt;/P&gt;&lt;P&gt;47.&amp;nbsp; &amp;nbsp; = 23&lt;/P&gt;&lt;P&gt;36&lt;/P&gt;&lt;P&gt;62. = 26&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 00:45:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-subtract-or-minus-the-values/m-p/675983#M18542</guid>
      <dc:creator>amitshrigoel</dc:creator>
      <dc:date>2024-01-31T00:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract or minus the values</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-subtract-or-minus-the-values/m-p/676007#M18544</link>
      <description>&lt;P&gt;1. This is not recursion&lt;/P&gt;&lt;P&gt;2. This is an old thread with possibly low visibility. Please create a new thread, describe your problem, what data you have, what results you need to raise your chances of getting a meaningful response.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 08:03:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-subtract-or-minus-the-values/m-p/676007#M18544</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-01-31T08:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract or minus the values</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-subtract-or-minus-the-values/m-p/676027#M18547</link>
      <description>&lt;LI-CODE lang="markup"&gt;| streamstats count as row current=f last(Value) as previous
| eval row=row%2
| eval diff=if(row=1,Value-previous*row,null())
| fields - previous row&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 31 Jan 2024 09:20:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-subtract-or-minus-the-values/m-p/676027#M18547</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-01-31T09:20:37Z</dc:date>
    </item>
  </channel>
</rss>

