# Brute Force Attack - Watcher using Windows Event id's

**URL:** https://discuss.elastic.co/t/brute-force-attack-watcher-using-windows-event-ids/99374
**Category:** Elasticsearch
**Tags:** elastic-stack-alerting
**Created:** [September 5, 2017, 6:35am UTC](https://discuss.elastic.co/t/brute-force-attack-watcher-using-windows-event-ids/99374 "2017-09-05T06:35:46Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![suchand](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@suchand](https://discuss.elastic.co/u/suchand)
#### Post date: [September 5, 2017, 6:35am UTC](https://discuss.elastic.co/t/brute-force-attack-watcher-using-windows-event-ids/99374/1 "2017-09-05T06:35:46Z")

</div>

Hi,  
Please share sample watcher to alert Brute Force Attack using windows Event id. (with throttling\_period).  
I need to show Source IP,Destination IP ,Computer name and User name in watcher history dashboard.

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [September 6, 2017, 8:48am UTC](https://discuss.elastic.co/t/brute-force-attack-watcher-using-windows-event-ids/99374/2 "2017-09-06T08:48:06Z")

</div>

You may get more feedback and guidance if you can detail exactly what the logic behind the watch need to be and what you have tried so far.

---

<div class="post-metadata">

### Author: ![suchand](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@suchand](https://discuss.elastic.co/u/suchand)
#### Post date: [September 6, 2017, 8:58am UTC](https://discuss.elastic.co/t/brute-force-attack-watcher-using-windows-event-ids/99374/3 "2017-09-06T08:58:28Z")

</div>

I need to alert if any unsuccessful login attempt happen. In the alert dashboard i would like to show Source IP,Destination IP,Username and Computer name.  
Please have a look into the JSON scrip copied below. Here i am able to fetch only one field - computer\_name.

{  
"trigger": {  
"schedule": {  
"interval": "30s"  
}  
},  
"input": {  
"search": {  
"request": {  
"search\_type": "query\_then\_fetch",  
"indices": [  
"winlogbeat-security-\*"  
],  
"types": [],  
"body": {  
"size": 0,  
"query": {  
"bool": {  
"filter": [  
{  
"range": {  
"@timestamp": {  
"from": "now-15m",  
"to": "now"  
}  
}  
},  
{  
"term": {  
"event\_id": "4648"  
}  
}  
]  
}  
},  
"aggs": {  
"failed\_name": {  
"terms": {  
"field": "computer\_name"  
}  
}  
}  
}  
}  
}  
},  
"condition": {  
"compare": {  
"ctx.payload.aggregations.failed\_name.buckets.3.doc\_count": {  
"gte": 3  
}  
}  
},  
"actions": {  
"my-logging-action": {  
"logging": {  
"level": "info",  
"text": "Brute Force Attempt Behaviour Detected: {{ctx.payload.aggregations.failed\_name.buckets.3}} "  
}  
}  
}  
}[quote="Christian\_Dahlqvist, post:2, topic:99374, full:true"]  
You may get more feedback and guidance if you can detail exactly what the logic behind the watch need to be and what you have tried so far.  
[/quote]

waiting for your kind reply.

---

<div class="post-metadata">

### Author: ![suchand](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@suchand](https://discuss.elastic.co/u/suchand)
#### Post date: [September 7, 2017, 11:53am UTC](https://discuss.elastic.co/t/brute-force-attack-watcher-using-windows-event-ids/99374/4 "2017-09-07T11:53:47Z")

</div>

Can you help me to resolve the issue mentioned in my previous comment.

---

<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 5, 2017, 11:53am UTC](https://discuss.elastic.co/t/brute-force-attack-watcher-using-windows-event-ids/99374/5 "2017-10-05T11:53:51Z")

</div>

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