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

Created an Index Pattern in Kibana but it's not saved - but no error either #87607

Open
rmoff opened this issue Jan 7, 2021 · 4 comments
Open
Labels
bug Fixes for quality problems that affect the customer experience Feature:Data Views Data Views code and UI - index patterns before 8.0 impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:small Small Level of Effort Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph)

Comments

@rmoff
Copy link

rmoff commented Jan 7, 2021

Kibana version:

7.10.0

Elasticsearch version:

7.10.0

Server OS version:

docker.elastic.co/elasticsearch/elasticsearch:7.10.0

Browser version:

Chrome
Version 87.0.4280.88 (Official Build) (x86_64)

Browser OS version:

Mac 10.15.7 (19H15)

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

  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.10.0
    container_name: elasticsearch
    ports:
      - 9200:9200
    environment:
      xpack.security.enabled: "false"
      ES_JAVA_OPTS: "-Xms1g -Xmx1g"
      discovery.type: "single-node"
      node.store.allow_mmap: "false"
    volumes: 
      - ./data/container_data/elasticsearch:/usr/share/elasticsearch/data

  kibana:
    image: docker.elastic.co/kibana/kibana:7.10.0
    container_name: kibana
    depends_on:
      - elasticsearch
    ports:
      - 5601:5601
    environment:
      xpack.security.enabled: "false"
      discovery.type: "single-node"

Describe the bug:

When I create an index pattern in Kibana it's not saved, but there's no error given.

Steps to reproduce:

  1. http://localhost:5601/app/management/kibana/indexPatterns -> Create index pattern
  2. Specify index pattern name against existing ES index, click Next step
  3. Select correct Time field.
  4. Click Create index pattern
  5. Index pattern is created, fields are listed
  6. Click on Index patterns under Kibana on the sidebar. No index patterns are listed (You have data in Elasticsearch. Now, create an index pattern.). Force-refresh page. Still no index patterns listed

Expected behavior:

When I create an index pattern I expect it to be saved if successful, or an error thrown in the UI if it was unsuccessful.

Screenshots (if relevant):

kib-ix-pattern.mp4

Errors in browser console (if relevant):

Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
^ A single error about an inline script not firing due to content security policy is expected!

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

kib.log

Any additional context:

@rmoff
Copy link
Author

rmoff commented Jan 7, 2021

In the Kibana log I saw this when I went to the Index Patterns home page

{
  "type": "log",
  "@timestamp": "2021-01-07T09:05:44Z",
  "tags": [
    "error",
    "elasticsearch",
    "data"
  ],
  "pid": 8,
  "message": "[search_phase_execution_exception]: all shards failed"
}

Since this was just a test environment I tore down Kibana and Elasticsearch containers, deleted the local data volume for the containers, and brought them back up. After that … it worked fine.


Whilst it looks like there was something odd with my deployment that is now fixed, it would be nice to improve the UX so that the user is told that something's not right instead of being stuck in an endless loop of "you need to create an index pattern, ok I'll create an index pattern, you need to create an index pattern, etc."

@myasonik myasonik added bug Fixes for quality problems that affect the customer experience Feature:Data Views Data Views code and UI - index patterns before 8.0 Team:AppServices labels Jan 7, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServices)

@Dosant Dosant added impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:small Small Level of Effort triaged labels Feb 24, 2021
@Dosant
Copy link
Contributor

Dosant commented Feb 24, 2021

@mattkime, looks like error handling when creating an index pattern needs improvement. I wonder if this is fixed in new index pattern management so this can be closed?

@exalate-issue-sync exalate-issue-sync bot added loe:medium Medium Level of Effort and removed loe:small Small Level of Effort labels Jun 21, 2021
@exalate-issue-sync exalate-issue-sync bot added loe:small Small Level of Effort and removed loe:medium Medium Level of Effort labels Dec 21, 2021
@petrklapka petrklapka added Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph) and removed Team:AppServicesSv labels Nov 28, 2022
@elasticmachine
Copy link
Contributor

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

@sophiec20 sophiec20 removed the triaged label Apr 24, 2023
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 Feature:Data Views Data Views code and UI - index patterns before 8.0 impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:small Small Level of Effort Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph)
Projects
None yet
Development

No branches or pull requests

6 participants