<?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: Monitoring Linux processes and getting the number of process count. in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480346#M59050</link>
    <description>&lt;P&gt;&lt;CODE&gt;I don't know what it counts numbers. If you know that, please provide here.&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;There are 2 processes running&lt;/CODE&gt;&lt;BR /&gt;
you know that, but we can't.&lt;/P&gt;

&lt;P&gt;There is only one COMMAND,&lt;/P&gt;

&lt;P&gt;you say &lt;CODE&gt;What is PSR?&lt;/CODE&gt; so, this is not the reason.&lt;/P&gt;

&lt;P&gt;why do you say &lt;CODE&gt;There are 2 processes running&lt;/CODE&gt; ?&lt;/P&gt;</description>
    <pubDate>Sun, 19 Apr 2020 21:42:10 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-04-19T21:42:10Z</dc:date>
    <item>
      <title>Monitoring Linux processes and getting the number of process count.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480337#M59041</link>
      <description>&lt;P&gt;I'm new to Splunk and just installed Splunk Add-on for Unix and Linux.&lt;/P&gt;

&lt;P&gt;We have 2 same processes running, both named processA. &lt;/P&gt;

&lt;P&gt;I ran a search for "last 30 seconds":&lt;/P&gt;

&lt;P&gt;sourcetype="ps" processA | stats count&lt;/P&gt;

&lt;P&gt;This gives event count(1) which I don't want.  How do I modify the search so that it gives the search count which is the number of process, in this case 2.&lt;/P&gt;

&lt;P&gt;I checked many samples which uses rex which doesn't work for me. &lt;/P&gt;

&lt;P&gt;Thanks in advance!  &lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 15:48:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480337#M59041</guid>
      <dc:creator>dpark1113</dc:creator>
      <dc:date>2020-04-17T15:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring Linux processes and getting the number of process count.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480338#M59042</link>
      <description>&lt;P&gt;Do count by process ID and process name.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="ps" processA | stats count by process_name, pid
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Apr 2020 17:19:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480338#M59042</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-04-17T17:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring Linux processes and getting the number of process count.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480339#M59043</link>
      <description>&lt;P&gt;I think this only works with Splunk Add-on for Linux which has "process_name" and "pid".  I'm using Splunk Add-on for *nix.  &lt;/P&gt;

&lt;P&gt;This is my sample output:&lt;/P&gt;

&lt;P&gt;USER                               PID PSR %CPU     TIME %MEM   RSZ    VSZ TT       S     ELAPSED COMMAND&lt;BR /&gt;
root                                 1   2  0.0 00:19:17  0.0  7584 194636 ?        S 64-17:28:01 /usr/lib/systemd/systemd --switched-root --system --deserialize 22&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 17:33:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480339#M59043</guid>
      <dc:creator>dpark1113</dc:creator>
      <dc:date>2020-04-17T17:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring Linux processes and getting the number of process count.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480340#M59044</link>
      <description>&lt;P&gt;will you provide whole one event?&lt;BR /&gt;
Do you divide events each one line?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 20:34:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480340#M59044</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-17T20:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring Linux processes and getting the number of process count.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480341#M59045</link>
      <description>&lt;P&gt;This is only one event, there are 2 processes showing in the event.  I just want to search that process and output the count as 2.  Not sure if I need to do any other configuration after I install the add-on. &lt;/P&gt;

&lt;P&gt;4/17/20&lt;BR /&gt;
8:44:19.000 PM&lt;BR /&gt;&lt;BR /&gt;
USER                               PID PSR %CPU     TIME %MEM   RSZ    VSZ TT       S     ELAPSED COMMAND&lt;BR /&gt;
root                                 1   2  0.0 00:19:20  0.0  7584 194636 ?        S 64-20:40:32 /usr/lib/systemd/systemd --switched-root --system --deserialize 22&lt;BR /&gt;
root                                 2   6  0.0 00:00:03  0.0     0      0 ?        S 64-20:40:32 [kthreadd]&lt;BR /&gt;
root                                 3   0  0.0 00:00:08  0.0     0      0 ?        S 64-20:40:32 [ksoftirqd/0]&lt;BR /&gt;
root                                 5   0  0.0 00:00:00  0.0     0      0 ?        S 64-20:40:32 [kworker/0:0H]&lt;BR /&gt;
root                                 7   0  0.0 00:00:00  0.0     0      0 ?        S 64-20:40:32 [migration/0]&lt;BR /&gt;
root                                 8   0  0.0 00:00:00  0.0     0      0 ?        S 64-20:40:32 [rcu_bh]&lt;BR /&gt;
root                                 9   7  0.0 00:14:50  0.0     0      0 ?        S 64-20:40:32 [rcu_sched]&lt;BR /&gt;
root                                10   0  0.0 00:00:00  0.0     0      0 ?        S 64-20:40:32 [lru-add-drain]&lt;BR /&gt;
root                                11   0  0.0 00:00:17  0.0     0      0 ?        S 64-20:40:32 [watchdog/0]&lt;BR /&gt;
root                                12   1  0.0 00:00:17  0.0     0      0 ?        S 64-20:40:32 [watchdog/1]&lt;BR /&gt;
root                                13   1  0.0 00:00:11  0.0     0      0 ?        S 64-20:40:32 [migration/1]&lt;BR /&gt;
root                                14   1  0.0 00:00:00  0.0     0      0 ?        S 64-20:40:32 [ksoftirqd/1]&lt;BR /&gt;
root                                16   1  0.0 00:00:00  0.0     0      0 ?        S 64-20:40:32 [kworker/1:0H]&lt;BR /&gt;
root                                17   2  0.0 00:00:14  0.0     0      0 ?        S 64-20:40:32 [watchdog/2]&lt;BR /&gt;
root                                18   2  0.0 00:00:00  0.0     0      0 ?        S 64-20:40:32 [migration/2]&lt;BR /&gt;
root                                19   2  0.0 00:00:00  0.0     0      0 ?        S 64-20:40:32 [ksoftirqd/2]&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:05:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480341#M59045</guid>
      <dc:creator>dpark1113</dc:creator>
      <dc:date>2020-09-30T05:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring Linux processes and getting the number of process count.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480342#M59046</link>
      <description>&lt;P&gt;I don't know ps output.&lt;BR /&gt;
&lt;CODE&gt;output the count as 2&lt;/CODE&gt;&lt;BR /&gt;
which one? &lt;BR /&gt;
&lt;CODE&gt;[ksoftirqd/2]&lt;/CODE&gt;&lt;BR /&gt;
this digit?&lt;/P&gt;

&lt;P&gt;if you want to count &lt;CODE&gt;PSR&lt;/CODE&gt; ,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="ps" "Process Name"
| streamstats count as session
| stats max(PSR)  as counts by session
| stats sum(counts)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Apr 2020 21:31:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480342#M59046</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-17T21:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring Linux processes and getting the number of process count.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480343#M59047</link>
      <description>&lt;P&gt;What is PSR?&lt;/P&gt;

&lt;P&gt;And the command didn't work for me.  Getting only 1 for "stats max(PSR)  as counts by session", no result if I add "stats sum(counts)"&lt;/P&gt;

&lt;P&gt;I'm still learning how to do this and shouldn't be this difficult to output the # of  the processes in a single event.  To simply put, my goal is to counting the matches in every row or line in a single event.  &lt;/P&gt;</description>
      <pubDate>Sat, 18 Apr 2020 18:39:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480343#M59047</guid>
      <dc:creator>dpark1113</dc:creator>
      <dc:date>2020-04-18T18:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring Linux processes and getting the number of process count.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480344#M59048</link>
      <description>&lt;P&gt;I see you don't extract fields appropriately.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;you should extract fields. where is the process number field?&lt;/LI&gt;
&lt;LI&gt;I don't know what it counts numbers. If you know that, please provide here.&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;stats count&lt;/CODE&gt; counts the events. if one event = one process is good. but it is not, you should count other thing.&lt;/LI&gt;
&lt;LI&gt;Breaking lines is easy. I just don't know if it's needed.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Sat, 18 Apr 2020 21:35:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480344#M59048</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-18T21:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring Linux processes and getting the number of process count.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480345#M59049</link>
      <description>&lt;P&gt;Sorry if I didn't make myself clear.  Still learning and probably not using the correct Splunk terminology. &lt;/P&gt;

&lt;P&gt;There are 2 processes running and my goal is to make sure 2 are running.   So I want to run a search and output telling me 2 are running.   &lt;/P&gt;

&lt;P&gt;There is no process number field, just process name.  &lt;/P&gt;

&lt;P&gt;So I take this is not possible in Splunk?  Maybe I'm asking too specific.  &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Basically, I have a bunch lines in a single event.  I want to search a specific word in that event and output the total number of the word I'm searching in generally speaking. &lt;/P&gt;</description>
      <pubDate>Sun, 19 Apr 2020 12:50:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480345#M59049</guid>
      <dc:creator>dpark1113</dc:creator>
      <dc:date>2020-04-19T12:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring Linux processes and getting the number of process count.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480346#M59050</link>
      <description>&lt;P&gt;&lt;CODE&gt;I don't know what it counts numbers. If you know that, please provide here.&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;There are 2 processes running&lt;/CODE&gt;&lt;BR /&gt;
you know that, but we can't.&lt;/P&gt;

&lt;P&gt;There is only one COMMAND,&lt;/P&gt;

&lt;P&gt;you say &lt;CODE&gt;What is PSR?&lt;/CODE&gt; so, this is not the reason.&lt;/P&gt;

&lt;P&gt;why do you say &lt;CODE&gt;There are 2 processes running&lt;/CODE&gt; ?&lt;/P&gt;</description>
      <pubDate>Sun, 19 Apr 2020 21:42:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480346#M59050</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-19T21:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring Linux processes and getting the number of process count.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480347#M59051</link>
      <description>&lt;P&gt;As I described in my first post, I have two same processes running.  I need to find whether those 2 processes are running or not.  I take this is not possible in Splunk.  Monitoring a single process is easy, 1 event = 1 process when you do a process search.  &lt;/P&gt;

&lt;P&gt;I might have to submit a ticket to Splunk for this but I'm afraid they wouldn't know the answer either.  &lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 13:00:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480347#M59051</guid>
      <dc:creator>dpark1113</dc:creator>
      <dc:date>2020-04-20T13:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring Linux processes and getting the number of process count.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480348#M59052</link>
      <description>&lt;P&gt;There is no log, nobody make query. the log indicates two process runnig, splunk can find and count.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 20:59:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-Linux-processes-and-getting-the-number-of-process/m-p/480348#M59052</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-20T20:59:08Z</dc:date>
    </item>
  </channel>
</rss>

