- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
03-19-2025 05:03 AM
One of the rules I am trying to create is to know when a particular service is stopped in Windows. Couple of things I have tried.
1. Event IDs: Typically Event ID 7036/7040 is generated when a service is stopped. But I cannot get a single result with my query
dataset = xdr_data
| filter action_evtlog_event_id in (7036,7040)
7036 and 7040 are not monitored.
2. Looking at host inventory services:
The following query kind of works, but I cannot create a BIOC rule with this.
config case_sensitive = false
| preset = host_inventory_services | filter service_name contains "XXX" | fields endpoint_name, ip_address, path_name, service_name, service_state
| filter service_state != ENUM.SERVICE_RUNNING
What is a good way to do this? Ideally, I am not looking to block this, but just generate a low level alert for the same.
03-19-2025 08:41 AM
Hello @VarunPitale ,
You can use below sample:
dataset = xdr_data
| filter event_type = ENUM.PROCESS
| filter event_sub_type = ENUM.PROCESS_STOP
If you feel this has answered your query, please let us know by clicking like and on "mark this as a Solution". Thank you.
03-21-2025 05:00 AM
Thanks @aspatil
I tried this solution, but it did not work in some scenarios. We tries by going to services.msc and then in the GUI, picking the service and stopping it. This behavior should also show up in alerts
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!