# How to filtering the data in api level while offloading in eastic search

**URL:** <https://discuss.elastic.co/t/how-to-filtering-the-data-in-api-level-while-offloading-in-eastic-search/342315>\
**Category:** Elasticsearch\
**Created:** [September 5, 2023, 8:41am UTC](https://discuss.elastic.co/t/how-to-filtering-the-data-in-api-level-while-offloading-in-eastic-search/342315 "2023-09-05T08:41:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sahithi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sahithi/32/140558_2.png) [@sahithi](https://discuss.elastic.co/u/sahithi)\
**Post date:** [September 5, 2023, 8:41am UTC](https://discuss.elastic.co/t/how-to-filtering-the-data-in-api-level-while-offloading-in-eastic-search/342315/1 "2023-09-05T08:41:54Z")

</div>

How to filtering the data in api level while offloading the data in eastic search ?

Can any one help me here plz?

---

<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 5, 2023, 8:43am UTC](https://discuss.elastic.co/t/how-to-filtering-the-data-in-api-level-while-offloading-in-eastic-search/342315/2 "2023-09-05T08:43:57Z")

</div>

It is not clear what you are asking for. For someone to be able to provide a response I think you will need to elaborate on the question and provide more background and context around what you are looking to achieve.

---

<div class="post-metadata">

**Author:** ![sahithi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sahithi/32/140558_2.png) [@sahithi](https://discuss.elastic.co/u/sahithi)\
**Post date:** [September 5, 2023, 8:53am UTC](https://discuss.elastic.co/t/how-to-filtering-the-data-in-api-level-while-offloading-in-eastic-search/342315/3 "2023-09-05T08:53:06Z")

</div>

Hi Christian,

In our present project we implemented the Elasticsearch and kibana, and we are able to see analytics data and all for all APIs which are running . But now i want to exclude ( remove) one api analytics from the index . How can we achieve this through filtering or during the offloading, is there any way to do this

---

<div class="post-metadata">

**Author:** ![sahithi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sahithi/32/140558_2.png) [@sahithi](https://discuss.elastic.co/u/sahithi)\
**Post date:** [September 5, 2023, 8:58am UTC](https://discuss.elastic.co/t/how-to-filtering-the-data-in-api-level-while-offloading-in-eastic-search/342315/4 "2023-09-05T08:58:35Z")

</div>

Hi , Christian any idea reg my request, if yes coul you please confirm.

Thanks  
Sahithi

---

<div class="post-metadata">

**Author:** ![sahithi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sahithi/32/140558_2.png) [@sahithi](https://discuss.elastic.co/u/sahithi)\
**Post date:** [September 5, 2023, 9:08am UTC](https://discuss.elastic.co/t/how-to-filtering-the-data-in-api-level-while-offloading-in-eastic-search/342315/5 "2023-09-05T09:08:04Z")

</div>

Could you please provide any link for my query?

---

<div class="post-metadata">

**Author:** ![sahithi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sahithi/32/140558_2.png) [@sahithi](https://discuss.elastic.co/u/sahithi)\
**Post date:** [September 5, 2023, 9:25am UTC](https://discuss.elastic.co/t/how-to-filtering-the-data-in-api-level-while-offloading-in-eastic-search/342315/6 "2023-09-05T09:25:31Z")

</div>

Any one help me here ?

---

<div class="post-metadata">

**Author:** ![chris\_g](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@chris\_g](https://discuss.elastic.co/u/chris_g)\
**Post date:** [September 5, 2023, 2:00pm UTC](https://discuss.elastic.co/t/how-to-filtering-the-data-in-api-level-while-offloading-in-eastic-search/342315/7 "2023-09-05T14:00:39Z")

</div>

@sahithi From reading your requirement I understand that you are ingesting some data into Elasticsearch but there is some data you wish to exclude based on a condition. There are a few ways this can be accomplished depending on how you are ingesting your data:

- Logstash - use the [drop filter plugin](https://www.elastic.co/guide/en/logstash/current/plugins-filters-drop.html) in your logstash.conf configuration to match on the specific API you wish to discard and Logstash will exclude this event when indexing to Elasticsearch.
- Filebeat - there is the [drop events](https://www.elastic.co/guide/en/beats/filebeat/current/drop-event.html) processor which is similar to the drop filter plugin mentioned above.
- Ingest Pipelines - [drop processor](https://www.elastic.co/guide/en/elasticsearch/reference/current/drop-processor.html) processor.

Hope this helps!

---

<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 3, 2023, 2:01pm UTC](https://discuss.elastic.co/t/how-to-filtering-the-data-in-api-level-while-offloading-in-eastic-search/342315/8 "2023-10-03T14:01:11Z")

</div>

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