![](/img/trans.png)
[英]Is is possible to index data into Elastic Search without using Logstash or FileBeats or Kibana?
[英]Is there a way of sending data directly to elasticsearch without using filebeats and logstash?
到现在为止 ,我已经使用Filebeat或Logstash (有时甚至是两者)将数据发送到Elasticsearch 。
我只想知道是否有任何方法可以在不使用这两种方法的情况下将数据直接发送到Elasticsearch 。
听起来很傻,但是我必须消除我的疑虑。
您使用Elasticsearch的REST API与Elasticsearch进行通信,将数据发送到Elasticsearch时,Filebeat和Logstash都使用某些REST API。
例如,您可以使用简单的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"
}
'
有关更多信息,请阅读此文档
可以使用fluend代替logstash。 如果可以告诉您必须使用Logstash / filebeat的任何限制,那么可以提出建议。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.