# How can I Filter Error logs

**URL:** <https://discuss.elastic.co/t/how-can-i-filter-error-logs/210130>\
**Category:** Logstash\
**Created:** [December 2, 2019, 7:48am UTC](https://discuss.elastic.co/t/how-can-i-filter-error-logs/210130 "2019-12-02T07:48:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kishara](https://avatars.discourse-cdn.com/v4/letter/k/dfb087/32.png) [@kishara](https://discuss.elastic.co/u/kishara)\
**Post date:** [December 2, 2019, 7:48am UTC](https://discuss.elastic.co/t/how-can-i-filter-error-logs/210130/1 "2019-12-02T07:48:27Z")

</div>

**How can I filter Error logs through the other logs**

input {  
beats {  
port =\> 5044  
}  
}

filter{  
grok{  
#I have no idea about GROK filter  
}  
}

output {

elasticsearch {  
hosts =\> "localhost:9200"  
manage\_template =\> false  
index =\> "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"  
}

}

---

<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:** [December 30, 2019, 7:48am UTC](https://discuss.elastic.co/t/how-can-i-filter-error-logs/210130/2 "2019-12-30T07:48:30Z")

</div>

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