在grafana展示elasticsearch数据源的数据时想指定展示某几列的具体信息。
想做出select id,name,age from table where … 这样的输出结果。
我在elasticsearch中的数据如下:
POST aaaodt1002_20190830/doc/1
{
"gettime": "2019-08-30 18:05:02.077",
"machine":"SP1APA",
"syscode": "AAA",
"appcode": "CICS",
"logtype":"LOG",
"filename":"console.32101",
"logdata":"ERZ024114E/0335 01/14/19 15:18:38.727701000 RGSIB1A 14680446/0001 : No user journals opened"
}
数据类型gettime为Date,logdata为text,其他均为keyword
我在grafana中成功连接了数据源,然后设置Metric为Raw Document,Table Transform设置为JSON Data,但在Columns点击加号+是空,无法选择字段,是怎么回事?