# Doese a 'local' filebeat installation makes sense?

**URL:** <https://discuss.elastic.co/t/doese-a-local-filebeat-installation-makes-sense/47353>\
**Category:** Beats\
**Created:** [April 14, 2016, 7:38am UTC](https://discuss.elastic.co/t/doese-a-local-filebeat-installation-makes-sense/47353 "2016-04-14T07:38:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pat7](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pat7/32/81768_2.png) [@pat7](https://discuss.elastic.co/u/pat7)\
**Post date:** [April 14, 2016, 7:38am UTC](https://discuss.elastic.co/t/doese-a-local-filebeat-installation-makes-sense/47353/1 "2016-04-14T07:38:54Z")

</div>

hi, i got a windows server on which i have a network share mounted with several logfiles I want to send to logstash. logstash (and actualy the whole elasticstack) is installed on that same server. I can use file input in logstash to get the log data.  
But my question is: do i have any advantage if I would install filebeat on the same machine and would use the beats protocol to ship the log data to logstash instead of using file input?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 14, 2016, 7:44am UTC](https://discuss.elastic.co/t/doese-a-local-filebeat-installation-makes-sense/47353/2 "2016-04-14T07:44:26Z")

</div>

I don't think there would be a technical advantage if you're going to run Logstash on that machine anyway. However, if you have other machines where you'd run similarly configured Filebeat instances it might be easier from a management perspective to have the same configuration everywhere.

---

<div class="post-metadata">

**Author:** ![pat7](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pat7/32/81768_2.png) [@pat7](https://discuss.elastic.co/u/pat7)\
**Post date:** [April 14, 2016, 7:49am UTC](https://discuss.elastic.co/t/doese-a-local-filebeat-installation-makes-sense/47353/3 "2016-04-14T07:49:55Z")

</div>

okay alright. i keep that in mind if some servers will added as shippes. thank you for the quick respond @magnusbaeck 🙂

---

<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:** [April 15, 2016, 6:12am UTC](https://discuss.elastic.co/t/doese-a-local-filebeat-installation-makes-sense/47353/4 "2016-04-15T06:12:32Z")

</div>

I think @magnusbaeck mentioned the most important point. If you use Filebeat it allows you to add machines without changing your setup.

---

<div class="post-metadata">

**Author:** ![pat7](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pat7/32/81768_2.png) [@pat7](https://discuss.elastic.co/u/pat7)\
**Post date:** [May 2, 2016, 5:59pm UTC](https://discuss.elastic.co/t/doese-a-local-filebeat-installation-makes-sense/47353/5 "2016-05-02T17:59:12Z")

</div>

thank you @magnusbaeck and @ruflin.

i got my setup running with the file input but i got a problem with a specific log file -logstash dosent parse the data in it. this file will be generated every friday and will gain up to more than 50 MB during the week (not so much logevents entries in the files but long lines, i cut the longer lines off with a mutate filter and message will be dropped, too cause the information in the longer lines are useless for me). does logstash have problemes with larger files? would it better to try this with a local filebeat?

in addition to the file size the application which writes the logfile adds after every entry a new empty line (the next log event will be written in this line so no spaces between log events in the log just temporyry new lines). i have no write permission on the file - so i copied the content of the file in a new one and replaced the empty line at the end and startet logstash with the filepath of this new file and it parsed every entry correctly... do you have an idea to solve this problem with the file from the server?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 3, 2016, 11:14am UTC](https://discuss.elastic.co/t/doese-a-local-filebeat-installation-makes-sense/47353/6 "2016-05-03T11:14:11Z")

</div>

I'm not aware of Logstash having issues with line length, but there probably is a limit somewhere. How long lines are we talking about here?

> in addition to the file size the application which writes the logfile adds after every entry a new empty line (the next log event will be written in this line so no spaces between log events in the log just temporyry new lines).

Do you mean that the file always ends with a newline character? That's exactly what Logstash expects. If not I don't understand what you mean by "temporary new line".

---

<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 5, 2017, 9:52pm UTC](https://discuss.elastic.co/t/doese-a-local-filebeat-installation-makes-sense/47353/7 "2017-07-05T21:52:31Z")

</div>


