# Exclude gc.log in filebeat config file

**URL:** <https://discuss.elastic.co/t/exclude-gc-log-in-filebeat-config-file/186595>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 20, 2019, 5:43am UTC](https://discuss.elastic.co/t/exclude-gc-log-in-filebeat-config-file/186595 "2019-06-20T05:43:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jadaun\_kx1](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@jadaun\_kx1](https://discuss.elastic.co/u/jadaun_kx1)\
**Post date:** [June 20, 2019, 5:43am UTC](https://discuss.elastic.co/t/exclude-gc-log-in-filebeat-config-file/186595/1 "2019-06-20T05:43:52Z")

</div>

Hi,

Exclude gc.log in filebeat config file  
￼  
jadaun\_kx1  
kaushal  
5m  
while going on kibana i'm seeing it's showing localhost logs from  
/var/log/elasticsearch/gc.log  
but i dont want to see them, can anyone help me and suggest me any way  
how can i exclude this path in my filebeat config file?

---

<div class="post-metadata">

**Author:** ![sjabiulla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sjabiulla/32/48429_2.png) [@sjabiulla](https://discuss.elastic.co/u/sjabiulla)\
**Post date:** [June 20, 2019, 7:09am UTC](https://discuss.elastic.co/t/exclude-gc-log-in-filebeat-config-file/186595/2 "2019-06-20T07:09:47Z")

</div>

try [exclude\_files](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html#filebeat-input-log-exclude-files)

---

<div class="post-metadata">

**Author:** ![jadaun\_kx1](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@jadaun\_kx1](https://discuss.elastic.co/u/jadaun_kx1)\
**Post date:** [June 21, 2019, 5:32am UTC](https://discuss.elastic.co/t/exclude-gc-log-in-filebeat-config-file/186595/3 "2019-06-21T05:32:25Z")

</div>

@sjabiulla  
Thanks for taking out time, i hope i will find it really useful

---

<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:** [July 19, 2019, 7:33am UTC](https://discuss.elastic.co/t/exclude-gc-log-in-filebeat-config-file/186595/4 "2019-07-19T07:33:54Z")

</div>

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