可以通过查询在 Kibana 上更改/设置过滤器值吗?

huangapple go评论69阅读模式
英文:

Is it possible to change/ set filter value on kibana via query

问题

I got multiple visualizations that filtered on same field and value, value=x.

{
"query": {
"bool": {
"should": [
{
"match_phrase": {
"value.keyword": "x"
}
}
],
"minimum_should_match": 1
}
}
}

From time to time I need to change that value, I want to avoid entering each visualization and changing it, is it possible to automate the process ?

Is it possible to change/ set filter value via query ?

英文:

I got multiple visualizations that filtered on same field and value, value=x.

{
  "query": {
    "bool": {
      "should": [
        {
          "match_phrase": {
            "value.keyword": "x"
          }
        }
      ],
      "minimum_should_match": 1
    }
  }
}

From time to time I need to change that value, I want to avoid entering each visualization and changing it, is it possible to automate the process ?

Is it possible to change/ set filter value via query ?

答案1

得分: 0

Found link to kibana API
using UPDATE option doing the job

$ curl -X PUT api/index_patterns/index-pattern/my-pattern
{
"attributes": {
"title": "some-other-pattern-*"
}
}

https://www.elastic.co/guide/en/kibana/7.16/saved-objects-api.html

英文:

Found link to kibana API
using UPDATE option doing the job

$ curl -X PUT api/index_patterns/index-pattern/my-pattern
{
  "attributes": {
    "title": "some-other-pattern-*"
  }
}

https://www.elastic.co/guide/en/kibana/7.16/saved-objects-api.html

huangapple
  • 本文由 发表于 2023年5月10日 14:23:11
  • 转载请务必保留本文链接:https://go.coder-hub.com/76215419.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定