[英]Elasticsearch lucene query in grafana
I have Grafana 2.6 and Elasticsearch 1.6.2 as datasource 我有Grafana 2.6和Elasticsearch 1.6.2作为数据源
on each of my documents, I have a field "status" that can have the values "Queued", "Complete" 在我的每个文档中,我有一个字段“status”,其值可以是“Queued”,“Complete”
I would like to graph the number of documents with status:Queued on time 我想绘制具有状态的文档数量:按时排队
here is 1 document: 这是1个文件:
{
"_index": "myindex",
"_type": "e_sdoc",
"_id": "AVHFTlZiGCWSWOI9Qtj4",
"_score": 3.2619324,
"_source": {
"status": "Queued",
"update_date": "2015-12-04T00:01:35.589956",
"md5": "738b67990f820ba28f3c10bc6c8b6ea3",
"sender": "Someone",
"type": "0",
"last_client_update": "2015-11-18T18:13:32.879085",
"uuid": "a80efd11-8ecc-4ef4-afb3-e8cd75d167ad",
"name": "Europe",
"insert_date": "2015-11-18T18:14:34.302295",
"filesize": 10948809532,
"is_online": "off",
"id1": 77841,
"id2": 53550932
},
"fields": {
"insert_date": [
1447870474302
],
"update_date": [
1449187295589
],
"last_client_update": [
1447870412879
]
}
}
My question is: Grafana wants a lucene query to submit to ES but I have no idea what I should use 我的问题是:Grafana想要一个lucene查询提交给ES,但我不知道我应该使用什么
Have searched through the official doc, Grafana issues or looked into ES query made by Kibana but I can't find a valid syntax that is working :/ 已经搜索了官方文档,Grafana发布或查看了Kibana提出的ES查询,但我找不到有效的语法:
time field was the problem. 时间场是个问题。 it seems there is no timestamp in my documents
似乎我的文档中没有时间戳
edited my Elasticsearch datasource 编辑了我的Elasticsearch数据源
changed 'Time field name' from @timestamp
to update_date
将“时间字段名称”从
@timestamp
为update_date
I have now datapoints ! 我现在有数据点!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.