# Select() return -1,errno=1. run filebeat by golang code

**URL:** <https://discuss.elastic.co/t/select-return-1-errno-1-run-filebeat-by-golang-code/157969>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 23, 2018, 7:54am UTC](https://discuss.elastic.co/t/select-return-1-errno-1-run-filebeat-by-golang-code/157969 "2018-11-23T07:54:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [November 26, 2018, 8:31am UTC](https://discuss.elastic.co/t/select-return-1-errno-1-run-filebeat-by-golang-code/157969/2 "2018-11-26T08:31:09Z")

</div>

What is the problem with using the package `exec` to run Filebeat? [How use Stop method?](https://discuss.elastic.co/t/how-use-stop-method/155833/5?u=kvch)

---

_[View the full topic](https://discuss.elastic.co/t/select-return-1-errno-1-run-filebeat-by-golang-code/157969)._
