[英]Not able to plot diagram from Elasticsearch Lucene query in Grafana 2.x
我正在使用帶有Elasticsearchas數據源的Grafana。 在每個文檔上,我都有一個字段“ id”和“ lastmodifiedDate”。 我想顯示帶有ID相應上次修改日期的計數表。
這是我的文件:
{
"_index": "global_search",
"_type": "News_Item",
"_id": "48",
"_score": 1,
"_source": {
"id": "48",
"dueDate": 1478802600000,
"lastModifiedDate": 1478802600000,
"whenCreatedDate": 1477506600000,
"ownerEmail": "abc@gmail.com",
"owner": {
"firstname": "ABC",
"lastname": "Kumar",
"email": "abc@gmail.com"
},
"subject": "USA','According to NBCDFW.com, an explosion at a silicon plant ",
"status": "NEW",
"updatedby": "ABC Kumar",
"content": "Text data"
}
},
{
"_index": "global_search",
"_type": "News_Item",
"_id": "26",
"_score": 1,
"_source": {
"id": "26",
"dueDate": 1477679400000,
"lastModifiedDate": 1477679400000,
"whenCreatedDate": 1477506600000,
"researchTitle": "Flash Floods Hit Parts of Southern France",
"ownerEmail": "xyz@gmail.com",
"owner": {
"firstname": "XYZ",
"lastname": "Kumar",
"email": "xyz@gmail.com"
},
"subject": "Flash Floods Hit Parts of Southern France",
"status": "MONITORING",
"updatedby": "XYZ",
"content": "Text2 data"
}
}
問:如何繪制具有ID的依日期的表格?Lucene查詢要繪制表格的確切方式是什么?
您可以使用以下查詢參數獲取它:
Metric:
Count
Group by:
type: Date Histogram
field: lastModifiedDate
查詢字段可以留為空白。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.