consolecommentskibanaelastic-stackkibana-6

How to write comments in Kibana console?


Can you provide me with a hint how to comment out lines in Kibana Dev Tools console? I am interested in comment syntax.


Solution

  • Kibana dev tools does not support the comment within the query.

    However, you can use # before or after the query or in-between queries to write a comment.

    # This is a  comment
    GET /_search
    {
      "query": {
        "match_all": {}
      }
    }
    
    # This is another comment
    POST /index/_delete_by_query
    {
      "query": {
        "match": {
          "name": "abra ka dabra"
        }
      }
    }