Unable to create dashboards using "ip-x.x.x.x" String

I have field hostname -- > which look's like this "ip-1.2.3.4" When I try to create a dashboard its seperating the hostname into multiple field. I think its because of analyzed field. I have convert it back to not_analyzed.

Example:

curl -XPUT 'http://localhost:9200/vpic/hostname/_mapping' -d '
{
"hostname" : {
"properties" : {
"hostname" : {"type" : "string", "index" : "not_analyzed" }
}
}
}'

But still unble to create virtualize for the same.

ip-X.X.X.X is broken and some weird chart is getting created

@Christian_Dahlqvist Please help.

It looks like the field is indeed analysed. You can not change the mapping for an existing index without reindexing the data. Have you done this?

How to reindex?. I haven't reindexed it but try to change mapping.

You will need to update the index template and then create a new index and write your data there. Look at this post for some options how this can be done.