Query with IP Range doesn't work... | Elasticsearch as Data Source

Hello there!
Im triying to get a query with a IP range, but doesn’t work.
When I use this query: ip_origen.keyword: [172.25.65.0 TO 172.25.65.128] Grafana shows just one IP:


But if I use this one: ip_origen.keyword: [172.25.65.0 TO 172.25.65.28] Grafana shows IP addresses wich doesn’t match with the query:

I think that this is because just match the first number after the last dot this is the reason why the second one shows more IP.

Please tell me if I am doing somethig wrong or if I am right tell me if there is a way to do IP ranges.

Thank you guys and sorry about my english :frowning:

Working now, the problem was that the fields with the IP was type string and needs be type ip.

1 Like