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

[BUG] Can't create index pattern with special characters #877

Closed
jere-ortega24 opened this issue Oct 18, 2021 · 10 comments
Closed

[BUG] Can't create index pattern with special characters #877

jere-ortega24 opened this issue Oct 18, 2021 · 10 comments
Labels
bug Something isn't working

Comments

@jere-ortega24
Copy link

jere-ortega24 commented Oct 18, 2021

Describe the bug
When creating an index pattern with special character it doesn't find the existing indices and doesn't let you create the index pattern. If you encode the pattern for url, it finds the indices and lets you create the index pattern, but later gives errors because it doesn't find any indices that match.

To Reproduce

  1. Create an index called [my-app]-1
  2. Go to Stack Management > Index Patterns > Create index pattern
  3. Use the pattern [my-app]-*
  4. It will show the error that no indices match the pattern and won't let you create the index pattern
  5. Bellow, indices matching will highlight with bold text where the pattern matches
  6. Use the pattern %5Bmy-app%5D-* which is url encoded
  7. It will show the message that matching indices were found
  8. Bellow, indices matching won't highlight with bold text where the pattern matches
  9. Press next
  10. It will show a message saying there are no fields for the matching indices
  11. Press create
  12. It will show errors saying no matching indices where found

Expected behavior
It should find the matching indices using the pattern [my-app]-*, let you create the index pattern and find the fields.

OpenSearch Version
1.0.0

Dashboards Version
1.0.0

Host/Environment (please complete the following information):

  • OS: Ubuntu 20.04
  • Browser and version: Chrome 94
@ahopp
Copy link
Contributor

ahopp commented Oct 18, 2021

@jere-ortega24 with your OpenSearch version, I assume you mean the open source OpenSearch version 1.0.0 and not anything specific to the AWS managed service? Just wanted to validate.

Assuming the former, can we pull "provided by AWS"?

@kavilla kavilla linked a pull request Oct 18, 2021 that will close this issue
5 tasks
@jere-ortega24
Copy link
Author

@ahopp done

@kavilla
Copy link
Member

kavilla commented Oct 20, 2021

Hello @jere-ortega24, thanks for opening this. How did you create your index pattern?

I utilized dev tools:
Screen Shot 2021-10-19 at 11 24 28 PM

And was able to create an index pattern:
Screen Shot 2021-10-19 at 11 25 32 PM

I currently used the main branch though.

@ananzh
Copy link
Member

ananzh commented Oct 27, 2021

Hi @jere-ortega24

I am trying to reproduce this issue and verify ur solution. I follow the same thing on v1.1 but I couldn't reproduce it. Seems work for me.

Screen Shot 2021-10-27 at 10 59 28 AM

@camAtGitHub
Copy link

I would like to add that all of the "Index Management" app - index filters are affected by something similar.

How to reproduce:

  1. Create some datastreams,
  2. goto 'Managed indicies',
  3. toggle button to show data streams,
  4. try and filter by typing '.ds' and it clears all results.

Sure I can type other things, but '.ds' should work. Also hypen '-' will clear all results too.
Strange behaviour (no refreshes) happen when you also input percent '%' (I was testing the URL encoded inputs).

Hopefully this helps / Creates more work :-)

@ananzh
Copy link
Member

ananzh commented Oct 27, 2021

Hey @camAtGitHub , we don't have 'Managed indicies' in the dashboards now. We only have index pattern. Can we help us understand ur question?

@camAtGitHub
Copy link

@ananzh Opensearch Plugins > Index Management > Managed Indices. Is the general location I was referring to. Most, if not all of the search-index-filters-thingy-ma-bobs under 'Index Management' (plugin?) are affected by my previous comment.

@jere-ortega24
Copy link
Author

@kavilla

How did you create your index pattern?

I created it using logstash 7.13.2 from the public docker image which has installed the output plugin 1.0.0. But checked right now creating it from the dev tools and is the same behavior.

@ananzh It might have been already fixed in 1.1 then. I will check.

@camAtGitHub i think you meant Policy managed indices. And yes i can confirm that it doesn't work for me either. Using - like in my-app it returns an empty set and using [] like in [my-app] it simply gets stuck with whatever it has at that moment. But again I'm on 1.0 I'm gonna check in 1.1 and update here.

@camAtGitHub
Copy link

FYI I'm on 1.1 docker edition and it's broken here too

@jere-ortega24
Copy link
Author

Ok I have checked and you are right it has been fixed in 1.1.

@camAtGitHub I checked and yes it also happens in 1.1, but i think you should probably open an issue in opensearch-project/index-management-dashboards-plugin as I understand it that's where that issue is.

I'm closing this issue, thanks for your help.

AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this issue Feb 10, 2022
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this issue Feb 10, 2022
# [24.1.0](elastic/elastic-charts@v24.0.0...v24.1.0) (2020-11-24)

### Bug Fixes

* **area_charts:** correctly represent baseline with negative data points ([opensearch-project#896](elastic/elastic-charts#896)) ([b622fda](elastic/elastic-charts@b622fda))
* **legend:** legend sizes with ordinal data ([opensearch-project#867](elastic/elastic-charts#867)) ([74bcbad](elastic/elastic-charts@74bcbad)), closes [opensearch-project#811](elastic/elastic-charts#811)
* render orphan data points on lines and areas ([opensearch-project#900](elastic/elastic-charts#900)) ([3e2c739](elastic/elastic-charts@3e2c739)), closes [opensearch-project#783](elastic/elastic-charts#783)
* specs swaps correctly reflected in state ([opensearch-project#901](elastic/elastic-charts#901)) ([a94347f](elastic/elastic-charts@a94347f))

### Features

* **legend:** allow legend text to be copyable ([opensearch-project#877](elastic/elastic-charts#877)) ([21a96d3](elastic/elastic-charts@21a96d3)), closes [opensearch-project#710](elastic/elastic-charts#710)
* allow clearing series colors from memory ([opensearch-project#899](elastic/elastic-charts#899)) ([e97f4ab](elastic/elastic-charts@e97f4ab))
* merge series domain with the domain of another group ([opensearch-project#912](elastic/elastic-charts#912)) ([716ad5a](elastic/elastic-charts@716ad5a))
* small multiples for XY charts (alpha) ([opensearch-project#793](elastic/elastic-charts#793)) ([3b88e1c](elastic/elastic-charts@3b88e1c)), closes [opensearch-project#500](elastic/elastic-charts#500) [opensearch-project#500](elastic/elastic-charts#500)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants