<?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: Alert when a Windows Service stops in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Alert-when-a-Windows-Service-stops/m-p/702362#M16216</link>
    <description>&lt;P&gt;Thx&amp;nbsp;&lt;SPAN&gt;Giuseppe!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2024 10:00:08 GMT</pubDate>
    <dc:creator>Teddiz</dc:creator>
    <dc:date>2024-10-21T10:00:08Z</dc:date>
    <item>
      <title>Alert when a Windows Service stops</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-a-Windows-Service-stops/m-p/685626#M15957</link>
      <description>&lt;P&gt;I am fairly new to the Splunk platform/ community; I am in learning mode &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; and I hope to get some help here. How do I set up/configure an alert on a set of Windows Servers to notify me when a particular set of services stops? For example, I have three services that start with the naming of TDB, how can I configure Splunk to alert if any of those services stop on a particular server name. Thanks much.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 13:59:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-a-Windows-Service-stops/m-p/685626#M15957</guid>
      <dc:creator>Razzi</dc:creator>
      <dc:date>2024-04-26T13:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when a Windows Service stops</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-a-Windows-Service-stops/m-p/685627#M15958</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/267341"&gt;@Razzi&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you should define the fields that you can use to&amp;nbsp;identify the fields to use:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;host (it's the host present in each log),&lt;/LI&gt;&lt;LI&gt;process.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Then you should create a lookup (called e.g. perimeter.csv) containing the hosts to monitor (supponing that the three services to monitor must be active in all the servers).&lt;/P&gt;&lt;P&gt;Then you should run a search like the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=&amp;lt;your_index&amp;gt; process IN (TBD1, TBD2, TBD3)
| stats 
    dc(process) AS process_count 
    values(process) AS process 
    count 
    BY host
| append [ 
    | inputlookup perimeter.csv 
    | eval count=0
    | fields host count
    ]
| stats 
    dc(process) AS process_count 
    values(process) AS process 
    sum(count) AS total
    BY host
| where total=0 OR process_count&amp;lt;3
| eval status=if(total=0, "missed host", "missed process")
| table host status process
| rename process AS "present processes"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 14:09:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-a-Windows-Service-stops/m-p/685627#M15958</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-04-26T14:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when a Windows Service stops</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-a-Windows-Service-stops/m-p/700070#M16201</link>
      <description>&lt;P&gt;can you explain me where I put the perimeter.csv and can you show me a little example how this file looks like?&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 08:43:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-a-Windows-Service-stops/m-p/700070#M16201</guid>
      <dc:creator>Teddiz</dc:creator>
      <dc:date>2024-09-25T08:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when a Windows Service stops</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-a-Windows-Service-stops/m-p/700081#M16202</link>
      <description>&lt;P&gt;One important thing - Splunk is not a "monitoring tool". So it will not tell you about the state of the service (unless you have a specific input listing states of services periodically but as far as I know there is no such input by default). You will only be able to see an event saying that the service has stopped or crashed or whatever if such event is logged (and if you're ingesting such events).&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 11:03:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-a-Windows-Service-stops/m-p/700081#M16202</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-09-25T11:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when a Windows Service stops</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-a-Windows-Service-stops/m-p/700088#M16203</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/272529"&gt;@Teddiz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;perimeter.csv is a csv file containing only one column (host) and the list of the hostname to monitor:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;host
my_host1
my_host2
my_host3
my_host4&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 12:38:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-a-Windows-Service-stops/m-p/700088#M16203</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-09-25T12:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when a Windows Service stops</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-a-Windows-Service-stops/m-p/702362#M16216</link>
      <description>&lt;P&gt;Thx&amp;nbsp;&lt;SPAN&gt;Giuseppe!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 10:00:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-a-Windows-Service-stops/m-p/702362#M16216</guid>
      <dc:creator>Teddiz</dc:creator>
      <dc:date>2024-10-21T10:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when a Windows Service stops</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-a-Windows-Service-stops/m-p/702412#M16218</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/272529"&gt;@Teddiz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;let us know if we can help you more, or, please, accept one answer for the other people of Community.&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 18:43:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-a-Windows-Service-stops/m-p/702412#M16218</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-10-21T18:43:23Z</dc:date>
    </item>
  </channel>
</rss>

