Saketh Bv
Saketh Bv

Reputation: 21

Is there a way of sending data directly to elasticsearch without using filebeats and logstash?

Till now i have sent my data to Elasticsearch using either Filebeat or Logstash and sometimes both.

I just want to know whether there is any way of sending my data directly to Elasticsearch without using these two.

Sounds silly but i had to get my doubt cleared.

Upvotes: 2

Views: 2181

Answers (2)

user4959043
user4959043

Reputation: 21

Instead of logstash you can use fluend. If you can tell about any constraint you have to using logstash/filebeat, then can suggest.

Upvotes: 1

leandrojmp
leandrojmp

Reputation: 7463

You communicate with Elasticsearch using its REST APIs, both Filebeat and Logstash use some REST API when sending data to elasticsearch.

For example, you can send data using a simple curl:

curl -X PUT "localhost:9200/twitter/_doc/1" -H 'Content-Type: application/json' -d'
{
    "user" : "kimchy",
    "post_date" : "2009-11-15T14:12:12",
    "message" : "trying out Elasticsearch"
}
'

For more information, read this documentation

Upvotes: 2

Related Questions