【发布时间】:2016-06-14 20:12:29
【问题描述】:
这是我查询我的 elasticsearch 数据库的执行搜索(它工作正常):
curl -XPOST 'localhost:9200/test/_search?pretty' -d '
{
"size":1,
"query": {
"match": {
"log.device":"xxxx"
}
},
"sort" : [ {
"_timestamp" :
{
"order":"desc"
}
}]
}'
我想通过带有插件elasticsearch的logstash做同样的事情。但是,https://www.elastic.co/guide/en/logstash/current/plugins-filters-elasticsearch.html 网站上没有可用的“大小”选项
elasticsearch {
hosts => ["localhost:9200/test"]
query => "log.device:%{[log][device]}"
sort => "@timestamp:desc"
}
你如何处理这个问题?
感谢您的关注和帮助。
乔
【问题讨论】: