Hi, I am creating my own special Kibana filter:
function createFilter(field){
_ return{_
_ meta: { _
_ index: 'logstash*', _
_ alias: 'Type filter' _
_ },_
_ query:{_
_ query_string: { query: field}_
_ }_
_ }_
_ }_
I am using queryFilter.addFilters(filter); But I need to update my filter. I am little confused by updateFilter function:
queryFilter.updateFilter({
_ source: filterOld,_
_ model: filterNew,_
_ type: 'query'_
_ });_
"source" should be old filter, "model" new one. But when I create filter (with my own function on the top of this text), it doesn't update it or add it.
var filterOld = createFilter("XXX");
var filterNew = createFilter("YYY");
What do I need to do for update? Thanks!