# How to load data in elk by go language? Any example?

**URL:** <https://discuss.elastic.co/t/how-to-load-data-in-elk-by-go-language-any-example/121607>\
**Category:** Elasticsearch\
**Created:** [February 27, 2018, 8:14am UTC](https://discuss.elastic.co/t/how-to-load-data-in-elk-by-go-language-any-example/121607 "2018-02-27T08:14:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuluopiaoyang](https://avatars.discourse-cdn.com/v4/letter/y/bbce88/32.png) [@yuluopiaoyang](https://discuss.elastic.co/u/yuluopiaoyang)\
**Post date:** [February 27, 2018, 8:14am UTC](https://discuss.elastic.co/t/how-to-load-data-in-elk-by-go-language-any-example/121607/1 "2018-02-27T08:14:03Z")

</div>

How to load data in elk by go language?Any example?  
I want use go language to load data in elk.  
I should send data to elastic directly or though logstash?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [February 27, 2018, 12:57pm UTC](https://discuss.elastic.co/t/how-to-load-data-in-elk-by-go-language-any-example/121607/2 "2018-02-27T12:57:02Z")

</div>

Hey,

you may want to take a look at [beats](https://github.com/elastic/beats) which are written in Go and send data either to Elasticsearch or logstash. Especially libbeat might be interesting.

There is also a community written go client available, see [https://github.com/olivere/elastic](https://github.com/olivere/elastic)

--Alex

---

<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 28, 2018, 1:49am UTC](https://discuss.elastic.co/t/how-to-load-data-in-elk-by-go-language-any-example/121607/4 "2018-03-28T01:49:26Z")

</div>

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