# How to restrict nodes while indexing to elastic search

**URL:** <https://discuss.elastic.co/t/how-to-restrict-nodes-while-indexing-to-elastic-search/243695>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 4, 2020, 11:21am UTC](https://discuss.elastic.co/t/how-to-restrict-nodes-while-indexing-to-elastic-search/243695 "2020-08-04T11:21:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rakesh\_Katakam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rakesh_katakam/32/47247_2.png) [@Rakesh\_Katakam](https://discuss.elastic.co/u/Rakesh_Katakam)\
**Post date:** [August 4, 2020, 11:21am UTC](https://discuss.elastic.co/t/how-to-restrict-nodes-while-indexing-to-elastic-search/243695/1 "2020-08-04T11:21:34Z")

</div>

Hi,

I am trying to index application logs to elastic search using file beats.  
Here I observed in elastic search, it created for each document hosts,agent..etc nodes, but I am interested only in message field Node.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/c/fcbcd479df2de467cbc86e58fa5413a7b1dcf2d4.png)

so is there a way to restrict these nodes with out indexing to elastic search with in beats module ?  
(or)  
do we have to use logstash in middle to mutate the fields?

Please suggest on the same.

Thanks,  
Rakesh Katakam.

---

<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:** [September 1, 2020, 1:21pm UTC](https://discuss.elastic.co/t/how-to-restrict-nodes-while-indexing-to-elastic-search/243695/2 "2020-09-01T13:21:41Z")

</div>

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