<?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 How to get a count from certain process on multiple machines? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-get-a-count-from-certain-process-on-multiple-machines/m-p/648717#M16694</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;So am trying to get a report of how many times in a month a certain process runs&amp;nbsp; on a machine and when the last it did&lt;/P&gt;
&lt;P&gt;index=wss_desktop_perfmon sourcetype="wks:Perf_Process" instance!="_Total" instance!="idle"&amp;nbsp;&lt;BR /&gt;| where instance like "%bplus.wtk%"&lt;/P&gt;
&lt;P&gt;So this is the start of the search. The process bplus.wtk in splunk can have multiple instances like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;bplus.wtk2#1&lt;/P&gt;
&lt;P&gt;bplus.wtk2#2&lt;/P&gt;
&lt;P&gt;bplus.wtk2#3&lt;/P&gt;
&lt;P&gt;I do not care about the info past bplus.wtk I just want a count of how many times that shows up in month on a machine and count it&lt;/P&gt;
&lt;P&gt;On that machine I want a report that looks like&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Computer&amp;nbsp;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;bplus.wtk&amp;nbsp;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Last Time it Ran&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;workstation1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;100&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;6/23/2023&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;workstation2&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;250&lt;/TD&gt;
&lt;TD&gt;6/27/2023&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried Stats count and it is not working because I think it is a string value I am looking at and not a number value.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is appreciated&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2023 15:52:18 GMT</pubDate>
    <dc:creator>coldwolf7</dc:creator>
    <dc:date>2023-06-30T15:52:18Z</dc:date>
    <item>
      <title>How to get a count from certain process on multiple machines?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-get-a-count-from-certain-process-on-multiple-machines/m-p/648717#M16694</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;So am trying to get a report of how many times in a month a certain process runs&amp;nbsp; on a machine and when the last it did&lt;/P&gt;
&lt;P&gt;index=wss_desktop_perfmon sourcetype="wks:Perf_Process" instance!="_Total" instance!="idle"&amp;nbsp;&lt;BR /&gt;| where instance like "%bplus.wtk%"&lt;/P&gt;
&lt;P&gt;So this is the start of the search. The process bplus.wtk in splunk can have multiple instances like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;bplus.wtk2#1&lt;/P&gt;
&lt;P&gt;bplus.wtk2#2&lt;/P&gt;
&lt;P&gt;bplus.wtk2#3&lt;/P&gt;
&lt;P&gt;I do not care about the info past bplus.wtk I just want a count of how many times that shows up in month on a machine and count it&lt;/P&gt;
&lt;P&gt;On that machine I want a report that looks like&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Computer&amp;nbsp;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;bplus.wtk&amp;nbsp;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Last Time it Ran&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;workstation1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;100&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;6/23/2023&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;workstation2&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;250&lt;/TD&gt;
&lt;TD&gt;6/27/2023&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried Stats count and it is not working because I think it is a string value I am looking at and not a number value.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is appreciated&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 15:52:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-get-a-count-from-certain-process-on-multiple-machines/m-p/648717#M16694</guid>
      <dc:creator>coldwolf7</dc:creator>
      <dc:date>2023-06-30T15:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a count from certain process on multiple machines?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-get-a-count-from-certain-process-on-multiple-machines/m-p/649112#M16722</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I think that something like this should work&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=wss_desktop_perfmon sourcetype="wks:Perf_Process" instance="*" instance!="_Total" instance!="idle" 
| where instance like "%bplus.wtk%"
| stats count as "bplus.wtk" max(_time) as lastRun by Computer
| eval lastRun = strftime(lastRun, "%m/%d/%Y")
| table Computer "bplus.wtk" lastRun&lt;/LI-CODE&gt;&lt;P&gt;Usually you should add that instance = "*xyz*" on first line, but as you have wildcard also in the beginning on it, it could be better (in point of performance) to have it separately? You should check it by Job Inspector. Also check if those instance!=xyz are better to drop or not as you are selecting only some specific instances on second line. Splunk is not good for != and NOT (in performance point of view).&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 13:04:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-get-a-count-from-certain-process-on-multiple-machines/m-p/649112#M16722</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-07-04T13:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a count from certain process on multiple machines?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-get-a-count-from-certain-process-on-multiple-machines/m-p/649367#M16733</link>
      <description>&lt;P&gt;That worked perfectly. I did take out the where statement and put the&amp;nbsp;&lt;SPAN&gt;instance = "*xyz*" on the first line and took out the != and ran so much faster&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 18:29:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-get-a-count-from-certain-process-on-multiple-machines/m-p/649367#M16733</guid>
      <dc:creator>coldwolf7</dc:creator>
      <dc:date>2023-07-05T18:29:57Z</dc:date>
    </item>
  </channel>
</rss>

