# Filebeat using go lang

**URL:** <https://discuss.elastic.co/t/filebeat-using-go-lang/168153>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 13, 2019, 6:23am UTC](https://discuss.elastic.co/t/filebeat-using-go-lang/168153 "2019-02-13T06:23:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [February 13, 2019, 6:23am UTC](https://discuss.elastic.co/t/filebeat-using-go-lang/168153/1 "2019-02-13T06:23:13Z")

</div>

HI Team,  
I want to know some information about filebeat using golang. Currently, I'm using golang api in that i can use elasticsearch to index my data. Is it possible to use filebeat with that to send data from filebeat to elasticsearch using golang.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 13, 2019, 7:02am UTC](https://discuss.elastic.co/t/filebeat-using-go-lang/168153/2 "2019-02-13T07:02:38Z")

</div>

If the data is in a file, then yes it can.

---

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [February 13, 2019, 7:09am UTC](https://discuss.elastic.co/t/filebeat-using-go-lang/168153/3 "2019-02-13T07:09:52Z")

</div>

Im hitting data using postman

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 13, 2019, 7:29am UTC](https://discuss.elastic.co/t/filebeat-using-go-lang/168153/4 "2019-02-13T07:29:27Z")

</div>

Filebeat can accept data through these inputs - [https://www.elastic.co/guide/en/beats/filebeat/current/configuration-filebeat-options.html](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-filebeat-options.html)

So unless you can pass the data to it in this manner, you may not be able to use it.

---

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [February 13, 2019, 7:32am UTC](https://discuss.elastic.co/t/filebeat-using-go-lang/168153/5 "2019-02-13T07:32:36Z")

</div>

To my understand data which we need to parse should be in file and confiuration file of filebeat should be in the respective manner so that we can achieve by parsing through golang code. Am i correct?

---

<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:** [March 13, 2019, 7:42am UTC](https://discuss.elastic.co/t/filebeat-using-go-lang/168153/6 "2019-03-13T07:42:45Z")

</div>

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