# Adding type in filebeat.yml

**URL:** https://discuss.elastic.co/t/adding-type-in-filebeat-yml/203750
**Category:** Beats
**Tags:** filebeat
**Created:** [October 16, 2019, 6:11am UTC](https://discuss.elastic.co/t/adding-type-in-filebeat-yml/203750 "2019-10-16T06:11:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![souravatta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/souravatta/32/61388_2.png) [@souravatta](https://discuss.elastic.co/u/souravatta)
#### Post date: [October 16, 2019, 6:11am UTC](https://discuss.elastic.co/t/adding-type-in-filebeat-yml/203750/1 "2019-10-16T06:11:17Z")

</div>

I am stashing jenkins logs from filbeat to ELK stack. I have taken the reference of this logstash.conf file.

 ![filter_plugin](https://us1.discourse-cdn.com/elastic/original/3X/c/1/c11bab853ff3dea5df9864ef85817c479f9010dd.jpeg)

I need to add the _type =\> jenkins-server_ ( **highlighted in red** ) to my filebeat.yml for better filtering. I have tried to add it but its not working.

Can anyone help me in adding this to my filebeat.yml.

> #=========================== Filebeat inputs =============================
> 
> filebeat.inputs:
> 
> - type: log  
> enabled: true  
> paths:
> - /opt/app/elk/logs/jenkins.log  
> multiline.pattern: '^%{MONTH} %{MONTHDAY}, %{YEAR} %{TIME} (AM|PM)'  
> multiline.negate: true  
> multiline.match: before

In my guess, I have to override the type =\> log in filebeat.yml.  
Please help here.

---

<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: [November 13, 2019, 6:13am UTC](https://discuss.elastic.co/t/adding-type-in-filebeat-yml/203750/2 "2019-11-13T06:13:07Z")

</div>

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