cars10 / elasticvue

Elasticsearch gui for the browser
https://elasticvue.com
MIT License
1.86k stars 147 forks source link

[BUG] - Elasticvue doesn't show all templates #239

Closed aidin-gh closed 4 months ago

aidin-gh commented 5 months ago

Description

I have a few templates on my cluster. I can see them by calling _index_templates API directly, but the app doesn't show them. I tried it on a new single-node cluster on my local machine, and the result was the same.

Steps To Reproduce List the steps to reproduce your problem:

  1. Run Elastic Search locally using docker.
  2. Put an _index_template. For example I tried this:
curl -X PUT -H 'Content-Type: application/json' 'localhost:9200/_index_template/bugreport_test1' -d '{
  "index_patterns": ["bug_test_*"],
    "template": {
      "settings": {
        "number_of_shards": 1
      },
     "mappings": {
      "properties": {
        "date": {
          "format": "yyyy-MM-dd",
          "type": "date"
        }
      }
    }
  }
}'
  1. Open Elasticvue and go to the Index Templates. The template is not there.

I tried disconnecting and re-connecting, and resetting the app. But templates didn't appear.

Screenshots

Screenshot_20240625_133032 Screenshot_20240625_132948

Environment (please include the following information):

cars10 commented 4 months ago

The API you are referring to is the legacy API. It seems like your templates are not migrated yet, see the info box at the top here: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-template-v1.html

This is also a duplicate of #170

aidin-gh commented 4 months ago

Hi @cars10, Thanks for looking into this!

I'm using the new API. The legacy API is /_template/, but as you see in the curl command and the screenshot, I'm using the new _index_template API.

aidin-gh commented 4 months ago

I installed the Firefox Addon, and I can see that it's calling the legacy URI.

Please let me know if I can collect any info about this issue that helps you identify it.

Screenshot_20240702_084831