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

[Geo Alerting] - Kibana does not recognize a valid geo_shape index when attempting to create a Tracking Containment alert. #95418

Closed
Jaraxal opened this issue Mar 25, 2021 · 3 comments · Fixed by #96633
Assignees
Labels
bug Fixes for quality problems that affect the customer experience [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation Feature:Alerting regression v7.12.0 v8.0.0

Comments

@Jaraxal
Copy link
Member

Jaraxal commented Mar 25, 2021

Kibana version: 7.12

Elasticsearch version: 7.12

Server OS version: N/A

Browser version: Chrome Version 89.0.4389.90 (Official Build) (x86_64)

Browser OS version: Mac OS 11.2.3

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

Describe the bug:

Kibana is not recognizing a valid index for defining the boundary used in a tracking containment geo alert. Kibana says no valid indexes found. I have an index pattern created and a properly indexed geo_shape document in the index. I was able to successfully use this index to plot the geo_shape on Kibana Maps.

Steps to reproduce:

  1. Define a boundary index:

`
PUT /geo-boundary
{
"mappings": {
"properties": {
"location": {
"type": "geo_shape"
}
}
}
}

GET /geo-boundary/_search

POST /geo-boundary/_doc
{
"location" : {
"type" : "polygon",
"coordinates" : [
[
[
-77.18985,
38.89482
],
[
-77.18985,
38.86802
],
[
-77.10519,
38.86802
],
[
-77.10519,
38.89482
],
[
-77.18985,
38.89482
]
]
]
}
}
`
2. Create a Kibana index pattern for the index.
3. Attempt to create a tracking containment alert.
4. Kibana says it can't find a valid index.

Expected behavior:
Kibana should find and be able to use the index created above.

Screenshots (if relevant):
Kibana Index Pattern:
geo-boundary-index-pattern

Tracking Containment Alert Error:
tracking-containment-alert-error

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context:
cc: @aaronjcaldwell

@Jaraxal Jaraxal added bug Fixes for quality problems that affect the customer experience Feature:Alerting labels Mar 25, 2021
@Jaraxal Jaraxal changed the title [Geo Alerting] - Kibana does not recognize a valid geo_shap index when attempting to create a Tracking Containment alert. [Geo Alerting] - Kibana does not recognize a valid geo_shape index when attempting to create a Tracking Containment alert. Mar 25, 2021
@kmartastic
Copy link
Contributor

I could not repro in default cloud instance.
image

@kmartastic kmartastic assigned kmartastic and kindsun and unassigned kmartastic Mar 29, 2021
@botelastic botelastic bot added the needs-team Issues missing a team label label Apr 6, 2021
@mikecote mikecote added [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation triage_needed and removed needs-team Issues missing a team label labels Apr 8, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

@nreese
Copy link
Contributor

nreese commented Apr 8, 2021

Steps to reproduce:

  1. On a fresh install, create at least 10 index patterns without any geo fields.
  2. create an index pattern with geo_shape field.
  3. geo index pattern select in either alert configuration or maps add layer will be disabled with message that there are no index patterns with geo fields.

The issue has always existed. Prior to 7.12, the first 100 index patterns where searched for index patterns with geo fields. #92093, merged in 7.12, made this issue much more severe. The PR attempted to up the number of index patterns to 1000 but instead resulted in just 10 index patterns to be searched while looking for index patterns with geo fields.

Working on a fix for 7.12.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation Feature:Alerting regression v7.12.0 v8.0.0
Projects
None yet
7 participants