<?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: Subtract input from output in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Subtract-input-from-output/m-p/558767#M158758</link>
    <description>&lt;LI-CODE lang="markup"&gt;| sort 0 _time
| eval wildfly=if(match(_raw,"WFLYSVR0025"),1,0)
| eval input=if(match(_raw,"input"),1,0)
| eval output=if(match(_raw,"output"),1,0)
| streamstats sum(wildfly) as wildfly
| streanstats sum(input) as input sum(output) as output by wildfly
| eval stillrunning=input-output&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 08 Jul 2021 21:58:43 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-07-08T21:58:43Z</dc:date>
    <item>
      <title>Subtract input from output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subtract-input-from-output/m-p/558755#M158753</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;I have some process that does not finish successfully, Now i want to trace them with splunk.&lt;/P&gt;&lt;P&gt;here is scenario:&lt;BR /&gt;I have wildfly that create log file. when I start wildfly this code WFLYSRV0025 appear in the log. now I want after latest time that whildfly started, splunk start to count number of "input" and "output" like below.&lt;/P&gt;&lt;P&gt;“Input” mean new processes start “need to store count of previous value then it always increasing ”(streamstats sum(count))&lt;BR /&gt;“output” means process has been finished “need to store count of previous value, this value subtract from input continuously ” (streamstats sum(count))&lt;/P&gt;&lt;P&gt;The goal is splunk tell me how much process still not finish. and show this on timechart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the log:&lt;/P&gt;&lt;P&gt;2021-07-06 23:10:47,131 INFO [as] WFLYSRV0025: Wildfly EAP 7.0.0.GA&lt;BR /&gt;2021-07-06 23:11:12,197 INFO [app] input , time[10] User: anonymous&lt;BR /&gt;2021-07-06 23:11:12,187 INFO [app] output, User: anonymous&lt;BR /&gt;2021-07-06 23:11:12,178 INFO [app] input , time[10] User: anonymous&lt;BR /&gt;2021-07-06 23:11:12,167 INFO [app] output, User: anonymous&lt;BR /&gt;2021-07-06 23:11:12,159 INFO [app] input , time[10] User: anonymous&lt;BR /&gt;2021-07-06 23:11:12,149 INFO [app] output, User: anonymous&lt;BR /&gt;2021-07-06 23:11:12,141 INFO [app] input , time[10] User: anonymous&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;4 input, 3 output&lt;/P&gt;&lt;P&gt;In above log as you see 1 input still remain, and not finished&lt;/P&gt;&lt;P&gt;2021-07-06 23:30:47,131 INFO [as] WFLYSRV0025: Wildfly EAP 7.0.0.GA&lt;BR /&gt;2021-07-06 23:30:47,197 INFO [app] input , time[10] User: anonymous&lt;BR /&gt;2021-07-06 23:30:47,141 INFO [app] input , time[10] User: anonymous&lt;BR /&gt;2021-07-06 23:30:47,131 INFO [app] input , time[10] User: anonymous&lt;BR /&gt;2021-07-06 23:30:47,134 INFO [app] output, User: anonymous&lt;BR /&gt;2021-07-06 23:30:47,138 INFO [app] output, User: anonymous&lt;BR /&gt;2021-07-06 23:30:47,131 INFO [app] input , time[10] User: anonymous&lt;BR /&gt;2021-07-06 23:30:47,131 INFO [app] input , time[10] User: anonymous&lt;/P&gt;&lt;P&gt;5 input, 2 output&lt;/P&gt;&lt;P&gt;In above log as you see 3 input still remain, and not finished&lt;/P&gt;&lt;P&gt;I want to show this on timechart, in each minute that show me how many input still there.&lt;/P&gt;&lt;P&gt;Any idea,&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 19:51:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subtract-input-from-output/m-p/558755#M158753</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2021-07-08T19:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract input from output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subtract-input-from-output/m-p/558767#M158758</link>
      <description>&lt;LI-CODE lang="markup"&gt;| sort 0 _time
| eval wildfly=if(match(_raw,"WFLYSVR0025"),1,0)
| eval input=if(match(_raw,"input"),1,0)
| eval output=if(match(_raw,"output"),1,0)
| streamstats sum(wildfly) as wildfly
| streanstats sum(input) as input sum(output) as output by wildfly
| eval stillrunning=input-output&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 08 Jul 2021 21:58:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subtract-input-from-output/m-p/558767#M158758</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-07-08T21:58:43Z</dc:date>
    </item>
  </channel>
</rss>

