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

User cannot save a filter with ip with CIDR notation value #50520

Open
Tracked by #166068
bhavyarm opened this issue Nov 13, 2019 · 9 comments
Open
Tracked by #166068

User cannot save a filter with ip with CIDR notation value #50520

bhavyarm opened this issue Nov 13, 2019 · 9 comments
Labels
enhancement New value added to drive a business result Feature:Filters Feature:Search Querying infrastructure in Kibana Feature:Unified search Unified search related tasks impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:needs-research This issue requires some research before it can be worked on or estimated Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.15.2

Comments

@bhavyarm
Copy link
Contributor

Kibana version: 7.5.0 BC4 same bug in other locations

Elasticsearch version: 7.5.0 BC4 same bug in other locations

Server OS version: darwin_x86_64

Browser version: chrome latest

Browser OS version: OS X

Original install method (e.g. download page, yum, from source, etc.): from staging

Describe the bug: User cannot save a filter if she tries to use ip value with CIDR notation value.

Steps to reproduce:

  1. Ingest documents into ES with the following mapping and create index pattern in Kibana
PUT ip_addr
{
 "mappings": {
   "properties": {
     "ip_addr": {
       "type": "ip"
     }
   }
 }
}
PUT ip_addr/_doc/1
{
  "ip_addr": "196.168.1.1"
}

PUT ip_addr/_doc/2
{
  "ip_addr": "196.168.2.1"
}

Check to make sure this search works:

GET ip_addr/_search
{
  "query": {
    "term": {
      "ip_addr": "196.168.0.0/16"
    }
  }
}
  1. Create index pattern in Kibana, go to discover ensure that documents are showing up and search works on ip_addr

  2. Create a filter and pick ip_addr and try to give the value of 196.168.0.0/16

  3. You cannot save the filter

  4. Give the IP value without CIDR notation and then edit the query DSL in the filter and input 196.168.0.0/16

  5. Kibana saves the filter

Screenshots (if relevant):

cantsave

save_edit_query_dsl

@bhavyarm bhavyarm added bug Fixes for quality problems that affect the customer experience Feature:Filters Feature:Discover Discover Application Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Nov 13, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@timroes timroes added enhancement New value added to drive a business result and removed bug Fixes for quality problems that affect the customer experience labels Nov 18, 2019
@timroes timroes added Team:AppArch and removed Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Mar 16, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@jamesharr
Copy link

This is a limitation/frustration I'm having with the user-interface as well. I'm running 7.9.0, but this has been around for a while.

image

I find myself throwing junk values into the UI-based filter, saving, then going in and editing the DSL to be what I actually want and it works.

Additionally, IPv6 addresses are not recognized. Same thing - you can toss in junk IPv4 values to get a DSL structure, then edit IPv6 in place.

image

It's worth noting that I've verified from my side that Kibana sees the data type as ip and that server-side data-type is ip as well. If you're targeting any sort of network use-cases, having CIDR-based searches is kind of an expectation.

@jgregmac
Copy link

I, too, would like to see this issue addressed.

Our Security Operations team makes use of the filtering UI in Kibana, and have been frustrated that they cannot do a CIDR search without dropping back to Lucene/KQL. It confuses them, especially since all of the training they took on Kibana emphasized the use of the filtering UI.

This seems like a simple fix that will net significant productivity gains for people using the Elastic Stack for SIEM and network operations use cases.

-Greg Mackinnon
Yale University

@exalate-issue-sync exalate-issue-sync bot added impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort labels Jun 2, 2021
@timroes timroes removed the Feature:Discover Discover Application label Jun 24, 2021
@toddferg
Copy link

toddferg commented Nov 24, 2021

Work around Gif added:
iprangetest

@exalate-issue-sync exalate-issue-sync bot removed the loe:small Small Level of Effort label May 12, 2022
@cstegm
Copy link

cstegm commented Oct 24, 2022

This is still an issue, while toddfergs workaround works very well....

@petrklapka petrklapka added Feature:Search Querying infrastructure in Kibana Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. and removed Team:AppServicesSv labels Nov 23, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@davismcphee davismcphee added the loe:needs-research This issue requires some research before it can be worked on or estimated label Sep 8, 2023
@kertal kertal added Feature:Unified search Unified search related tasks and removed Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. labels Oct 22, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Oct 22, 2024
@kertal kertal added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Oct 22, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-visualizations (Team:Visualizations)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Oct 22, 2024
@ghudgins
Copy link
Contributor

linking a solution in the controls project #184900

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:Filters Feature:Search Querying infrastructure in Kibana Feature:Unified search Unified search related tasks impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:needs-research This issue requires some research before it can be worked on or estimated Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.15.2
Projects
None yet
Development

No branches or pull requests