<?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 to get help about column subtraction in Splunk ITSI</title>
    <link>https://community.splunk.com/t5/Splunk-ITSI/Need-to-get-help-about-column-subtraction/m-p/477360#M1763</link>
    <description>&lt;P&gt;Hi manjunathmeti,&lt;/P&gt;

&lt;P&gt;message_id                                 status                         time&lt;/P&gt;

&lt;P&gt;2020-02-12T12:22:23.415248Z ERROR       2020-02-14T00:01:14.038498814Z&lt;BR /&gt;
2020-02-12T12:22:23.415248Z ERROR       2020-02-14T00:00:34.034346477Z&lt;BR /&gt;
2020-02-12T12:22:23.415248Z ERROR       2020-02-13T23:59:53.851851061Z&lt;BR /&gt;
2020-02-12T12:22:23.415248Z ERROR       2020-02-13T23:57:12.663621081Z&lt;BR /&gt;
2020-02-12T12:22:23.415248Z ERROR       2020-02-13T23:53:51.293506747Z&lt;BR /&gt;
2020-01-21T13:09:14.416164Z PROCESSED   2020-02-19T01:50:05.55630875Z&lt;BR /&gt;
2020-01-21T13:09:14.416164Z PROCESSING  2020-02-19T01:50:04.621606854Z&lt;BR /&gt;
2020-01-21T13:09:44.586501Z ERROR       2020-02-19T01:50:04.305742277Z&lt;BR /&gt;
2020-01-21T13:09:44.586501Z PROCESSING  2020-02-19T01:50:04.233225192Z&lt;BR /&gt;
2020-01-21T13:09:44.586416Z PROCESSED   2020-02-19T01:50:04.142651435Z&lt;BR /&gt;
2020-01-21T13:09:44.586416Z PROCESSING  2020-02-19T01:50:03.826457927Z&lt;BR /&gt;
2020-01-21T13:09:44.586321Z PROCESSED   2020-02-19T01:50:03.745964666Z&lt;BR /&gt;
2020-01-21T13:09:44.586321Z PROCESSING  2020-02-19T01:50:03.449583679Z&lt;BR /&gt;
2020-01-21T13:09:44.586190Z PROCESSED   2020-02-19T01:50:03.337887858Z&lt;BR /&gt;
2020-01-21T13:09:44.586190Z PROCESSING  2020-02-19T01:50:03.086329734Z&lt;BR /&gt;
2020-01-21T13:09:44.586063Z PROCESSED   2020-02-19T01:50:03.00531639Z&lt;BR /&gt;
2020-01-21T13:09:44.586063Z PROCESSING  2020-02-19T01:50:02.735821778Z&lt;BR /&gt;
2020-01-21T13:09:44.585532Z PROCESSED   2020-02-19T01:50:02.677935722Z&lt;BR /&gt;
2020-01-21T13:09:44.585532Z PROCESSING  2020-02-19T01:50:02.379874913Z&lt;BR /&gt;
2020-01-21T13:09:44.585456Z PROCESSED   2020-02-19T01:50:02.320574471Z&lt;BR /&gt;
2020-01-21T13:09:44.585456Z PROCESSING  2020-02-19T01:50:02.056969718Z&lt;BR /&gt;
2020-01-21T13:09:44.585379Z PROCESSED   2020-02-19T01:50:01.993389933Z&lt;BR /&gt;
2020-01-21T13:09:44.585379Z PROCESSING  2020-02-19T01:50:01.645723986Z&lt;BR /&gt;
2020-01-21T13:09:44.585301Z PROCESSED   2020-02-19T01:50:01.573655793Z&lt;BR /&gt;
2020-01-21T13:09:44.585301Z PROCESSING  2020-02-19T01:50:01.319969304Z&lt;BR /&gt;
2020-01-21T13:09:44.585220Z PROCESSED   2020-02-19T01:50:01.256761569Z&lt;BR /&gt;
2020-01-21T13:09:44.585220Z PROCESSING  2020-02-19T01:50:00.980754532Z&lt;BR /&gt;
2020-01-21T13:09:44.585132Z PROCESSED   2020-02-19T01:50:00.920435406Z&lt;BR /&gt;
2020-01-21T13:09:44.583423Z PROCESSING  2020-02-19T01:49:54.709364124Z&lt;BR /&gt;
2020-01-21T13:09:44.583342Z PROCESSED   2020-02-19T01:49:54.627564396Z&lt;BR /&gt;
2020-01-21T13:09:44.583342Z PROCESSING  2020-02-19T01:49:54.379127471Z&lt;BR /&gt;
2020-01-21T13:09:44.583255Z PROCESSED   2020-02-19T01:49:54.319034068Z&lt;BR /&gt;
2020-01-21T13:09:44.583255Z PROCESSING  2020-02-19T01:49:54.028230252Z&lt;BR /&gt;
2020-01-21T13:09:44.583171Z PROCESSED   2020-02-19T01:49:53.942640218Z&lt;BR /&gt;
2020-01-21T13:09:44.583171Z PROCESSING  2020-02-19T01:49:53.689197493Z&lt;BR /&gt;
2020-01-21T13:09:44.583085Z PROCESSED   2020-02-19T01:49:53.627728985Z&lt;BR /&gt;
2020-01-21T13:09:44.583085Z PROCESSING  2020-02-19T01:49:53.389097603Z&lt;BR /&gt;
2020-01-21T13:09:44.582989Z PROCESSED   2020-02-19T01:49:53.332868523Z&lt;BR /&gt;
2020-01-21T13:09:44.582989Z PROCESSING  2020-02-19T01:49:53.085943873Z&lt;BR /&gt;
2020-01-21T13:09:44.582905Z PROCESSED   2020-02-19T01:49:53.027980939Z&lt;BR /&gt;
2020-01-21T13:09:44.582905Z PROCESSING  2020-02-19T01:49:52.757156504Z&lt;BR /&gt;
2020-01-21T13:09:44.582821Z PROCESSED   2020-02-19T01:49:52.697941959Z&lt;BR /&gt;
2020-01-21T13:09:44.582821Z PROCESSING  2020-02-19T01:49:52.463730556Z&lt;BR /&gt;
2020-01-21T13:09:44.582727Z PROCESSED   2020-02-19T01:49:52.410138972Z&lt;BR /&gt;
2020-01-21T13:09:44.582727Z PROCESSING  2020-02-19T01:49:52.169536808Z&lt;BR /&gt;
2020-01-21T13:09:44.582639Z PROCESSED   2020-02-19T01:49:52.107720449Z&lt;BR /&gt;
2020-01-21T13:09:44.582639Z PROCESSING  2020-02-19T01:49:51.84715461Z&lt;BR /&gt;
2020-01-21T13:09:44.582555Z PROCESSED   2020-02-19T01:49:51.777011069Z&lt;BR /&gt;
2020-01-21T13:09:44.582555Z PROCESSING  2020-02-19T01:49:51.488824085Z&lt;BR /&gt;
2020-01-21T13:09:44.582467Z PROCESSED   2020-02-19T01:49:51.414304108Z&lt;BR /&gt;
2020-01-21T13:09:44.582467Z PROCESSING  2020-02-19T01:49:51.146699571Z&lt;BR /&gt;
2020-01-21T13:09:44.582370Z PROCESSED   2020-02-19T01:49:51.07314806Z&lt;BR /&gt;
2020-01-21T13:09:44.582370Z PROCESSING  2020-02-19T01:49:50.803455506Z&lt;BR /&gt;
2020-01-21T13:09:44.582288Z PROCESSED   2020-02-19T01:49:50.68563427Z&lt;BR /&gt;
2020-01-21T13:09:44.582288Z PROCESSING  2020-02-19T01:49:50.418044177Z&lt;BR /&gt;
2020-01-21T13:09:44.582211Z PROCESSED   2020-02-19T01:49:50.34967605Z&lt;/P&gt;

&lt;P&gt;I had three columns message_id, status,time&lt;BR /&gt;
I want to print the 'message_ids' which are YetToBeProcessed.&lt;/P&gt;

&lt;P&gt;YetToBeProcessed = ERROR+PROCESSED-PROCESSING&lt;/P&gt;

&lt;P&gt;Note:  Earlier post was to get the Count which is total(YetToBeProcessed)&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 04:20:08 GMT</pubDate>
    <dc:creator>saipavan123</dc:creator>
    <dc:date>2020-09-30T04:20:08Z</dc:date>
    <item>
      <title>Need to get help about column subtraction</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Need-to-get-help-about-column-subtraction/m-p/477356#M1759</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;
&lt;P&gt;message_id status time&lt;/P&gt;
&lt;P&gt;2020-01-21T13:09:14.416164Z PROCESSED 2020-02-19T01:50:05.55630875Z&lt;BR /&gt;2020-01-21T13:09:14.416164Z PROCESSING 2020-02-19T01:50:04.621606854Z&lt;BR /&gt;2020-01-21T13:09:44.586501Z ERROR 2020-02-19T01:50:04.305742277Z&lt;BR /&gt;2020-01-21T13:09:44.586501Z PROCESSING 2020-02-19T01:50:04.233225192Z&lt;BR /&gt;2020-01-21T13:09:44.586416Z PROCESSED 2020-02-19T01:50:04.142651435Z&lt;BR /&gt;2020-01-21T13:09:44.586416Z PROCESSING 2020-02-19T01:50:03.826457927Z&lt;BR /&gt;2020-01-21T13:09:44.586321Z PROCESSED 2020-02-19T01:50:03.745964666Z&lt;BR /&gt;2020-01-21T13:09:44.586321Z PROCESSING 2020-02-19T01:50:03.449583679Z&lt;BR /&gt;2020-01-21T13:09:44.586190Z PROCESSED 2020-02-19T01:50:03.337887858Z&lt;BR /&gt;2020-01-21T13:09:44.586190Z PROCESSING 2020-02-19T01:50:03.086329734Z&lt;BR /&gt;2020-01-21T13:09:44.586063Z PROCESSED 2020-02-19T01:50:03.00531639Z&lt;BR /&gt;2020-01-21T13:09:44.586063Z PROCESSING 2020-02-19T01:50:02.735821778Z&lt;/P&gt;
&lt;P&gt;I have a three columns: message_id, status, time&lt;BR /&gt;I need to get the count for status column like&lt;BR /&gt;PROCESSED = ?&lt;BR /&gt;PROCESSING = ?&lt;BR /&gt;ERROR = ?&lt;/P&gt;
&lt;P&gt;And finally, once we will get the count for ERROR,Processed,Processing then i need to do the subtraction like below:&lt;BR /&gt;Total = ERROR+PROCESSED-PROCESSING&lt;BR /&gt;Total = ?&lt;/P&gt;
&lt;P&gt;I'm using below query to get the total but it does not work::&lt;/P&gt;
&lt;P&gt;|rex field=log ".* Updated the Message Id : (?[^ ]&lt;EM&gt;).&lt;/EM&gt; status : (?.*)" | table message_id, status, time | stats count by status | eval total = ERROR + PROCESSED - PROCESSING&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 00:35:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Need-to-get-help-about-column-subtraction/m-p/477356#M1759</guid>
      <dc:creator>saipavan123</dc:creator>
      <dc:date>2020-06-07T00:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get help about column subtraction</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Need-to-get-help-about-column-subtraction/m-p/477357#M1760</link>
      <description>&lt;P&gt;The &lt;CODE&gt;stats&lt;/CODE&gt; command removes all fields except those mentioned in the command.  In your example, only the 'count' and 'status' fields remain therefore, the &lt;CODE&gt;eval&lt;/CODE&gt; fails because the needed fields are not present.  Try swapping the order of the commands.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 13:34:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Need-to-get-help-about-column-subtraction/m-p/477357#M1760</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-02-21T13:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get help about column subtraction</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Need-to-get-help-about-column-subtraction/m-p/477358#M1761</link>
      <description>&lt;P&gt;hi @saipavan123, as @richgalloway explained you need to convert &lt;STRONG&gt;status&lt;/STRONG&gt; values to fields before calculating total.&lt;/P&gt;

&lt;P&gt;Use transpose command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats count by status | transpose header_field=status | eval total = ERROR + PROCESSED - PROCESSING
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Feb 2020 14:46:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Need-to-get-help-about-column-subtraction/m-p/477358#M1761</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-02-21T14:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get help about column subtraction</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Need-to-get-help-about-column-subtraction/m-p/477359#M1762</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval _raw="message_id,status,time
2020-01-21T13:09:14.416164Z,PROCESSED,2020-02-19T01:50:05.55630875Z
2020-01-21T13:09:14.416164Z,PROCESSING,2020-02-19T01:50:04.621606854Z
2020-01-21T13:09:44.586501Z,ERROR,2020-02-19T01:50:04.305742277Z
2020-01-21T13:09:44.586501Z,PROCESSING,2020-02-19T01:50:04.233225192Z
2020-01-21T13:09:44.586416Z,PROCESSED,2020-02-19T01:50:04.142651435Z
2020-01-21T13:09:44.586416Z,PROCESSING,2020-02-19T01:50:03.826457927Z
2020-01-21T13:09:44.586321Z,PROCESSED,2020-02-19T01:50:03.745964666Z
2020-01-21T13:09:44.586321Z,PROCESSING,2020-02-19T01:50:03.449583679Z
2020-01-21T13:09:44.586190Z,PROCESSED,2020-02-19T01:50:03.337887858Z
2020-01-21T13:09:44.586190Z,PROCESSING,2020-02-19T01:50:03.086329734Z
2020-01-21T13:09:44.586063Z,PROCESSED,2020-02-19T01:50:03.00531639Z
2020-01-21T13:09:44.586063Z,PROCESSING,2020-02-19T01:50:02.735821778Z"
| multikv forceheader=1
| table message_id,status,time
| stats count by status
| eval count=if(status="PROCESSING",count * -1, count)
| stats sum(count) as total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Try this if you want only the result.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 20:42:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Need-to-get-help-about-column-subtraction/m-p/477359#M1762</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-21T20:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get help about column subtraction</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Need-to-get-help-about-column-subtraction/m-p/477360#M1763</link>
      <description>&lt;P&gt;Hi manjunathmeti,&lt;/P&gt;

&lt;P&gt;message_id                                 status                         time&lt;/P&gt;

&lt;P&gt;2020-02-12T12:22:23.415248Z ERROR       2020-02-14T00:01:14.038498814Z&lt;BR /&gt;
2020-02-12T12:22:23.415248Z ERROR       2020-02-14T00:00:34.034346477Z&lt;BR /&gt;
2020-02-12T12:22:23.415248Z ERROR       2020-02-13T23:59:53.851851061Z&lt;BR /&gt;
2020-02-12T12:22:23.415248Z ERROR       2020-02-13T23:57:12.663621081Z&lt;BR /&gt;
2020-02-12T12:22:23.415248Z ERROR       2020-02-13T23:53:51.293506747Z&lt;BR /&gt;
2020-01-21T13:09:14.416164Z PROCESSED   2020-02-19T01:50:05.55630875Z&lt;BR /&gt;
2020-01-21T13:09:14.416164Z PROCESSING  2020-02-19T01:50:04.621606854Z&lt;BR /&gt;
2020-01-21T13:09:44.586501Z ERROR       2020-02-19T01:50:04.305742277Z&lt;BR /&gt;
2020-01-21T13:09:44.586501Z PROCESSING  2020-02-19T01:50:04.233225192Z&lt;BR /&gt;
2020-01-21T13:09:44.586416Z PROCESSED   2020-02-19T01:50:04.142651435Z&lt;BR /&gt;
2020-01-21T13:09:44.586416Z PROCESSING  2020-02-19T01:50:03.826457927Z&lt;BR /&gt;
2020-01-21T13:09:44.586321Z PROCESSED   2020-02-19T01:50:03.745964666Z&lt;BR /&gt;
2020-01-21T13:09:44.586321Z PROCESSING  2020-02-19T01:50:03.449583679Z&lt;BR /&gt;
2020-01-21T13:09:44.586190Z PROCESSED   2020-02-19T01:50:03.337887858Z&lt;BR /&gt;
2020-01-21T13:09:44.586190Z PROCESSING  2020-02-19T01:50:03.086329734Z&lt;BR /&gt;
2020-01-21T13:09:44.586063Z PROCESSED   2020-02-19T01:50:03.00531639Z&lt;BR /&gt;
2020-01-21T13:09:44.586063Z PROCESSING  2020-02-19T01:50:02.735821778Z&lt;BR /&gt;
2020-01-21T13:09:44.585532Z PROCESSED   2020-02-19T01:50:02.677935722Z&lt;BR /&gt;
2020-01-21T13:09:44.585532Z PROCESSING  2020-02-19T01:50:02.379874913Z&lt;BR /&gt;
2020-01-21T13:09:44.585456Z PROCESSED   2020-02-19T01:50:02.320574471Z&lt;BR /&gt;
2020-01-21T13:09:44.585456Z PROCESSING  2020-02-19T01:50:02.056969718Z&lt;BR /&gt;
2020-01-21T13:09:44.585379Z PROCESSED   2020-02-19T01:50:01.993389933Z&lt;BR /&gt;
2020-01-21T13:09:44.585379Z PROCESSING  2020-02-19T01:50:01.645723986Z&lt;BR /&gt;
2020-01-21T13:09:44.585301Z PROCESSED   2020-02-19T01:50:01.573655793Z&lt;BR /&gt;
2020-01-21T13:09:44.585301Z PROCESSING  2020-02-19T01:50:01.319969304Z&lt;BR /&gt;
2020-01-21T13:09:44.585220Z PROCESSED   2020-02-19T01:50:01.256761569Z&lt;BR /&gt;
2020-01-21T13:09:44.585220Z PROCESSING  2020-02-19T01:50:00.980754532Z&lt;BR /&gt;
2020-01-21T13:09:44.585132Z PROCESSED   2020-02-19T01:50:00.920435406Z&lt;BR /&gt;
2020-01-21T13:09:44.583423Z PROCESSING  2020-02-19T01:49:54.709364124Z&lt;BR /&gt;
2020-01-21T13:09:44.583342Z PROCESSED   2020-02-19T01:49:54.627564396Z&lt;BR /&gt;
2020-01-21T13:09:44.583342Z PROCESSING  2020-02-19T01:49:54.379127471Z&lt;BR /&gt;
2020-01-21T13:09:44.583255Z PROCESSED   2020-02-19T01:49:54.319034068Z&lt;BR /&gt;
2020-01-21T13:09:44.583255Z PROCESSING  2020-02-19T01:49:54.028230252Z&lt;BR /&gt;
2020-01-21T13:09:44.583171Z PROCESSED   2020-02-19T01:49:53.942640218Z&lt;BR /&gt;
2020-01-21T13:09:44.583171Z PROCESSING  2020-02-19T01:49:53.689197493Z&lt;BR /&gt;
2020-01-21T13:09:44.583085Z PROCESSED   2020-02-19T01:49:53.627728985Z&lt;BR /&gt;
2020-01-21T13:09:44.583085Z PROCESSING  2020-02-19T01:49:53.389097603Z&lt;BR /&gt;
2020-01-21T13:09:44.582989Z PROCESSED   2020-02-19T01:49:53.332868523Z&lt;BR /&gt;
2020-01-21T13:09:44.582989Z PROCESSING  2020-02-19T01:49:53.085943873Z&lt;BR /&gt;
2020-01-21T13:09:44.582905Z PROCESSED   2020-02-19T01:49:53.027980939Z&lt;BR /&gt;
2020-01-21T13:09:44.582905Z PROCESSING  2020-02-19T01:49:52.757156504Z&lt;BR /&gt;
2020-01-21T13:09:44.582821Z PROCESSED   2020-02-19T01:49:52.697941959Z&lt;BR /&gt;
2020-01-21T13:09:44.582821Z PROCESSING  2020-02-19T01:49:52.463730556Z&lt;BR /&gt;
2020-01-21T13:09:44.582727Z PROCESSED   2020-02-19T01:49:52.410138972Z&lt;BR /&gt;
2020-01-21T13:09:44.582727Z PROCESSING  2020-02-19T01:49:52.169536808Z&lt;BR /&gt;
2020-01-21T13:09:44.582639Z PROCESSED   2020-02-19T01:49:52.107720449Z&lt;BR /&gt;
2020-01-21T13:09:44.582639Z PROCESSING  2020-02-19T01:49:51.84715461Z&lt;BR /&gt;
2020-01-21T13:09:44.582555Z PROCESSED   2020-02-19T01:49:51.777011069Z&lt;BR /&gt;
2020-01-21T13:09:44.582555Z PROCESSING  2020-02-19T01:49:51.488824085Z&lt;BR /&gt;
2020-01-21T13:09:44.582467Z PROCESSED   2020-02-19T01:49:51.414304108Z&lt;BR /&gt;
2020-01-21T13:09:44.582467Z PROCESSING  2020-02-19T01:49:51.146699571Z&lt;BR /&gt;
2020-01-21T13:09:44.582370Z PROCESSED   2020-02-19T01:49:51.07314806Z&lt;BR /&gt;
2020-01-21T13:09:44.582370Z PROCESSING  2020-02-19T01:49:50.803455506Z&lt;BR /&gt;
2020-01-21T13:09:44.582288Z PROCESSED   2020-02-19T01:49:50.68563427Z&lt;BR /&gt;
2020-01-21T13:09:44.582288Z PROCESSING  2020-02-19T01:49:50.418044177Z&lt;BR /&gt;
2020-01-21T13:09:44.582211Z PROCESSED   2020-02-19T01:49:50.34967605Z&lt;/P&gt;

&lt;P&gt;I had three columns message_id, status,time&lt;BR /&gt;
I want to print the 'message_ids' which are YetToBeProcessed.&lt;/P&gt;

&lt;P&gt;YetToBeProcessed = ERROR+PROCESSED-PROCESSING&lt;/P&gt;

&lt;P&gt;Note:  Earlier post was to get the Count which is total(YetToBeProcessed)&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:20:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Need-to-get-help-about-column-subtraction/m-p/477360#M1763</guid>
      <dc:creator>saipavan123</dc:creator>
      <dc:date>2020-09-30T04:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get help about column subtraction</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Need-to-get-help-about-column-subtraction/m-p/477361#M1764</link>
      <description>&lt;P&gt;Try xyseries, then you can filter result based on the output.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats count by status, message_id | xyseries message_id, status, count | fillnull value=0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Feb 2020 14:15:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Need-to-get-help-about-column-subtraction/m-p/477361#M1764</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-02-24T14:15:54Z</dc:date>
    </item>
  </channel>
</rss>

