How to do “where not exists” type filtering in Kibana/ELK?

前端 未结 4 1791
谎友^
谎友^ 2021-02-02 06:05

I am using ELK to create dashboards from my log files. I have a log file with entries that contain an id value and a \"success\"/\"failure\" value, displaying whether an operati

4条回答
  •  庸人自扰
    2021-02-02 06:49

    This is easy in Kibana 5 search bar. Just add a filter

    !(_exists_:"your_variable") 
    

    you can toggle the filter or write the inverse query as

    _exists_:"your_variable"
    

    In Kibana 4 and Kibana 3 you can use this query which is now deprecated

    _missing_:"your_variable"  
    

    NOTE: In Elasticsearch 7.x, Kibana now has a pull down to select KQL or Lucene style queries in the search bar. Be mindful that syntax such as _exists_:FIELD is a Lucene syntax and you need to set the pulldown accordingly.

提交回复
热议问题