[英]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. 到现在为止 ,我已经使用Filebeat或Logstash (有时甚至是两者)将数据发送到Elasticsearch 。
I just want to know whether there is any way of sending my data directly to Elasticsearch without using these two. 我只想知道是否有任何方法可以在不使用这两种方法的情况下将数据直接发送到Elasticsearch 。
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. 您使用Elasticsearch的REST API与Elasticsearch进行通信,将数据发送到Elasticsearch时,Filebeat和Logstash都使用某些REST API。
For example, you can send data using a simple curl
: 例如,您可以使用简单的
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. 可以使用fluend代替logstash。 If you can tell about any constraint you have to using logstash/filebeat, then can suggest.
如果可以告诉您必须使用Logstash / filebeat的任何限制,那么可以提出建议。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.