# How to push droped events into elastic search

**URL:** <https://discuss.elastic.co/t/how-to-push-droped-events-into-elastic-search/182802>\
**Category:** Logstash\
**Created:** [May 26, 2019, 2:54pm UTC](https://discuss.elastic.co/t/how-to-push-droped-events-into-elastic-search/182802 "2019-05-26T14:54:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahulkothanath](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahulkothanath/32/99122_2.png) [@rahulkothanath](https://discuss.elastic.co/u/rahulkothanath)\
**Post date:** [May 26, 2019, 2:54pm UTC](https://discuss.elastic.co/t/how-to-push-droped-events-into-elastic-search/182802/1 "2019-05-26T14:54:01Z")

</div>

I have to index dropped events from filter plugin into elastic search . below is a sample code.

```
filter{

grok {
       match =>{ "message" => "(?<tran_type_isg>(?<=^.{58}).{3})(?<trash>.{11})(?<tran_type_ab>.{3})"}
       
       }
#checking transaction type and parsing
 if [tran_type_ab] == "ABC"{
     #do something
	 match => { "message" => "(?<CRD_NO>(?<=^.{58}).{3})" }
 } 
 else if [tran_type_ab] == "DEF"{
 #do something
 }
 else{
 
 drop{}
 #how to index dropped events into elastic search?
 }
}

```

I also would like to know the location where dropped events are placed if any?

thanks  
for reading and helping

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 26, 2019, 3:19pm UTC](https://discuss.elastic.co/t/how-to-push-droped-events-into-elastic-search/182802/2 "2019-05-26T15:19:00Z")

</div>

> [@rahulkothanath](#):
>
> I also would like to know the location where dropped events are placed if any?

They are not placed anywhere. They are dropped -- i.e. deleted. If you want to index them then do not drop them.

---

<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:** [June 23, 2019, 3:40pm UTC](https://discuss.elastic.co/t/how-to-push-droped-events-into-elastic-search/182802/4 "2019-06-23T15:40:35Z")

</div>

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