How to load data in elk by go language?

How to load data in elk by go language?Any example? Thank you!

Elastic has a Go client (https://github.com/elastic/go-elasticsearch) and there's also https://github.com/olivere/elastic, plus in the end it's just a REST API so depending on what you want to do a plain HTTP client might suffice.

Let me have a look. Thank you for your respond!
I thought I need to load data to elastic through logstash.
As you say, I can load data to elastic directly.

Please don't post the same thing in different categories :slight_smile: