简体   繁体   中英

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.

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM