Kibana visualize对字段值操作

JSON Input

A text field where you can add specific JSON-formatted properties to merge with the aggregation definition, as in the following example:

乘法:
{ "script" : "doc['grade'].value * 1.2" }


截取:

{ "script" : "_value.contains('AL')?'HUAWEI':_value.substring(0,8)" }

 

数值四舍五入:

{ "script" : "Math.round(_value)"}

你可能感兴趣的:(elk)