# Notify when windows service does not exist

**URL:** <https://discuss.elastic.co/t/notify-when-windows-service-does-not-exist/188254>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [July 1, 2019, 7:42am UTC](https://discuss.elastic.co/t/notify-when-windows-service-does-not-exist/188254 "2019-07-01T07:42:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wismat](https://avatars.discourse-cdn.com/v4/letter/w/7ab992/32.png) [@Wismat](https://discuss.elastic.co/u/Wismat)\
**Post date:** [July 1, 2019, 7:42am UTC](https://discuss.elastic.co/t/notify-when-windows-service-does-not-exist/188254/1 "2019-07-01T07:42:23Z")

</div>

Hi!

As for today my windows module configuration looks like:

```
- module: windows
  metricsets: ["service"]
  period: 10s
  processors:
  - drop_event.when.not.regexp:
      windows.service.display_name: '^(MyService1|MyService2)$'
  fields:
    env: dev

```

Everything works fine, but there is an important issue: what if service does not exist? Now, when it is stopped or started, logs are being sent to Kibana. But when I uninstall the service, no logs are provided and as a result in Kibana last received state is "running"...

Is there any possibility, option to enforce logging to Kibana with state like "service-not-exists"?

Best regards,  
Mateusz

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 29, 2019, 7:42am UTC](https://discuss.elastic.co/t/notify-when-windows-service-does-not-exist/188254/2 "2019-07-29T07:42:23Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
