[英]How do I define and view a scripted_field in my Kibana 3 dashboard?
I have Kibana 3 connected to ElasticSearch. 我将Kibana 3连接到ElasticSearch。 I can successfully query and view data, and create custom dashboards.
我可以成功查询和查看数据,并创建自定义仪表板。 However, I can't get any scripted field to display in my dashboard.
但是,我无法在仪表板中显示任何脚本字段。
script_fields" : { "test" : { "script" : "testing" } } script_fields“:{”test“:{”script“:”testing“}}
How should I refer to a scripted field in the dashboard? 我应该如何参考仪表板中的脚本字段? ie, to display a normal returned field, I use rows.panels.fields = @fields.myfieldname.
即,为了显示正常的返回字段,我使用rows.panels.fields = @ fields.myfieldname。 I've tried @fields.test and @script_fields.test and a few others with no result.
我已经尝试了@ fields.test和@ script_fields.test以及其他一些没有结果的人。
Do I need to go to Kibana 4 to realize this functionality? 我是否需要去Kibana 4才能实现此功能?
Any help is appreciated. 任何帮助表示赞赏。
Thanks, Dave 谢谢,戴夫
You cannot define the scripted fields in a Kibana 3 dashboard. 您无法在Kibana 3仪表板中定义脚本字段。 You could predefine your script in your Elasticsearch settings and then query for the scripted field name as a normal fiel, in your case "test".
您可以在Elasticsearch设置中预定义脚本,然后在您的案例“test”中查询脚本字段名称作为常规字段。
Kibana 4 will let you define scripted fields on the fly. Kibana 4将允许您动态定义脚本字段。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.