Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ip_range type #22619

Closed
jimmyjones2 opened this issue Sep 1, 2018 · 1 comment
Closed

Support ip_range type #22619

jimmyjones2 opened this issue Sep 1, 2018 · 1 comment
Labels
enhancement New value added to drive a business result Feature:Visualizations Generic visualization features (in case no more specific feature label is available) Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@jimmyjones2
Copy link
Contributor

See https://www.elastic.co/guide/en/elasticsearch/reference/current/range.html#ip-range

Currently Kibana will show the fields in discover, but the magnifying glasses don't work and they're not displayed very well:

kbn ip_range

curl -XPUT localhost:9200/foo -H 'Content-Type: application/json' -d '{"mappings":{"_doc":{"properties":{"ip":{"type":"ip_range"}}}}}'
curl localhost:9200/foo/_mapping {"foo":{"mappings":{"_doc":{"properties":{"ip":{"type":"ip_range"}}}}}}
curl -XPUT localhost:9200/foo/_doc/1?refresh -H 'Content-Type: application/json' -d '{"ip":"192.168.0.0/16"}'
curl -XPUT localhost:9200/foo/_doc/2?refresh -H 'Content-Type: application/json' -d '{"ip":{"gte":"10.0.0.0","lte":"10.0.0.255"}}'
curl -XPUT localhost:9200/foo/_doc/3?refresh -H 'Content-Type: application/json' -d '{"ip":[{"gte":"10.0.0.0","lte":"10.0.0.255"}, "1.1.1.1/32"]}'
@timroes timroes added :Discovery Feature:Visualizations Generic visualization features (in case no more specific feature label is available) enhancement New value added to drive a business result labels Sep 4, 2018
@timroes timroes added Team:Visualizations Visualization editors, elastic-charts and infrastructure and removed :Discovery labels Sep 13, 2018
@timroes
Copy link
Contributor

timroes commented Nov 28, 2018

Duplicate of #12751

@timroes timroes marked this as a duplicate of #12751 Nov 28, 2018
@timroes timroes closed this as completed Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Visualizations Generic visualization features (in case no more specific feature label is available) Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

2 participants