# Need to migrate a logstash shipper config to filebeat config

**URL:** <https://discuss.elastic.co/t/need-to-migrate-a-logstash-shipper-config-to-filebeat-config/54870>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 6, 2016, 8:50pm UTC](https://discuss.elastic.co/t/need-to-migrate-a-logstash-shipper-config-to-filebeat-config/54870 "2016-07-06T20:50:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shickmo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shickmo/32/10762_2.png) [@shickmo](https://discuss.elastic.co/u/shickmo)\
**Post date:** [July 6, 2016, 8:50pm UTC](https://discuss.elastic.co/t/need-to-migrate-a-logstash-shipper-config-to-filebeat-config/54870/1 "2016-07-06T20:50:12Z")

</div>

Below is the config I am currently using with logstash to ship logs to the logstash processing servers. I haven't been able to get the below working in the filebeat.yml config on a test centos 7 server (though I imagine it would be the same for centos 6 or 6.5 servers as well). Does anyone know what the filebeat.yml would look like for the below? Please also note I changed the names of the logs and services and such but the point is I don't know the syntax needed to make the below work.

input {

file {  
type =\> "SomeServices"  
add\_field =\> { "index" =\> "test" }  
path =\> ["/opt/apache-tomcat-7.0.59/logs/SomeServices-rolling.log"]  
sincedb\_path =\> "/var/log/logstash/.sincedb\_SomeServices"  
sincedb\_write\_interval =\> 5  
codec =\> multiline {  
pattern =\> "^%{TIMESTAMP\_ISO8601}"  
negate =\> true  
what =\> "previous"  
}  
}

file {  
type =\> "SomeServices-WOW-DM"  
add\_field =\> { "index" =\> "test" }  
path =\> ["/opt/apache-tomcat-7.0.59/logs/SomeServices-WOW-DM-rolling.log"]  
sincedb\_path =\> "/var/log/logstash/.sincedb\_SomeServices-WOW-DM"  
sincedb\_write\_interval =\> 5  
codec =\> multiline {  
pattern =\> "^%{TIMESTAMP\_ISO8601}"  
negate =\> true  
what =\> "previous"  
}  
}

file {  
type =\> "SomeServicesSup"  
add\_field =\> { "index" =\> "test" }  
path =\> ["/opt/apache-tomcat-7.0.59/logs/SomeServicesSup-rolling.log"]  
sincedb\_path =\> "/var/log/logstash/.sincedb\_SomeServicesSup"  
sincedb\_write\_interval =\> 5  
codec =\> multiline {  
pattern =\> "^%{TIMESTAMP\_ISO8601}"  
negate =\> true  
what =\> "previous"  
}  
}

}

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [July 11, 2016, 8:43am UTC](https://discuss.elastic.co/t/need-to-migrate-a-logstash-shipper-config-to-filebeat-config/54870/2 "2016-07-11T08:43:38Z")

</div>

Best is to first have a look at the filebeat getting started guide:

[https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-configuration.html](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-configuration.html)

For the multiline stuff, you find more details here:

[https://www.elastic.co/guide/en/beats/filebeat/1.2/multiline-examples.html#\_examples\_of\_multiline\_configuration](https://www.elastic.co/guide/en/beats/filebeat/1.2/multiline-examples.html#_examples_of_multiline_configuration)

---

<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 27, 2016, 8:50pm UTC](https://discuss.elastic.co/t/need-to-migrate-a-logstash-shipper-config-to-filebeat-config/54870/3 "2016-07-27T20:50:48Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
