Reputation: 21
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
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
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