# Alert rule for windows commands like ping

**URL:** <https://discuss.elastic.co/t/alert-rule-for-windows-commands-like-ping/315441>\
**Category:** Elastic Security\
**Tags:** windows, detection-rules\
**Created:** [September 29, 2022, 9:42am UTC](https://discuss.elastic.co/t/alert-rule-for-windows-commands-like-ping/315441 "2022-09-29T09:42:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kiko1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kiko1/32/106771_2.png) [@Kiko1](https://discuss.elastic.co/u/Kiko1)\
**Post date:** [September 29, 2022, 9:42am UTC](https://discuss.elastic.co/t/alert-rule-for-windows-commands-like-ping/315441/1 "2022-09-29T09:42:57Z")

</div>

Hi!

I created a rule to detect the ping command but it doesn't work for me.

Rule: process.name:"PING.exe" and process.state:"running"

The same rule with for example the powershell.exe works.

Thx

---

<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:** [October 27, 2022, 9:43am UTC](https://discuss.elastic.co/t/alert-rule-for-windows-commands-like-ping/315441/2 "2022-10-27T09:43:24Z")

</div>

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