5

Is there a way for Kibana to only display data once for both lowercase and uppercase matches?

For example, say I need a pie chart of exceptions, I would not want both "BusinessException" and "businessexception" to be displayed and to be considered different.

halpsb
  • 1,106
  • 2
  • 18
  • 28
  • I can only think of it as you type inside the query of kibana BusinessException AND businessexception For filtering u can do that but not for query. – Fizzo Jan 02 '15 at 08:01

1 Answers1

6

There's no way to do this with Kibana. However, you can do this at the elasticsearch level with a tokeniser. You'd set up something like this:

$ curl -XPUT localhost:9200/testindex/ -d '
{
  "settings":{
     "index":{
        "analysis":{
           "analyzer":{
              "case_insensitive_analyser":{
                 "tokenizer":"case_insensitive",
                 "filter":"uppercase"
              }
           }
        }
     }
  },
  "mappings":{
     "test":{
        "properties":{
           "exception":{
              "analyzer":"case_insensitive_analyser",
              "type":"string"
           }
        }
     }
  }
}

which I borrowed from this question: How to setup a tokenizer in elasticsearch

Community
  • 1
  • 1
bckygldstn
  • 283
  • 2
  • 6