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] Index templates uploaded via curl's PUT aren't listed in Dashboards's Templates page #996

Open
q2dg opened this issue Feb 15, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@q2dg
Copy link

q2dg commented Feb 15, 2024

Describe the bug

I have an index template written in a file ("mytemplate.json" and I upload it to OpenSearch via curl, like this:

curl -X PUT -k -u "admin:admin" -H "content-type:application/json" https://127.0.0.1:9200/_template/mytemplate -d @mytemplate.json

I get the "{"acknowledged":true}" answer and I see it's uploaded correctly because I do this...:

curl -k -u "admin:admin" https://127.0.0.1:9200/_cat/templates

...and I get this:

mytemplate            [packets-*] 0                  
ss4o_metrics_template [ss4o_metrics-*-*] 1          1       []
tenant_template       [.kibana_-*_*, .kibana_0*_*, .kibana_1*_*, .kibana_2*_*, .kibana_3*_*, .kibana_4*_*, .kibana_5*_*, .kibana_6*_*, .kibana_7*_*, .kibana_8*_*, .kibana_9*_*] 2147483647         []
ss4o_traces_template  [ss4o_traces-*-*] 1          1       []

But when I go (as a "admin:admin") to Dashboards' "Index management->Templates" menu, I ca'nt see this template:

Captura de pantalla de 2024-02-15 10-42-35

Thanks!

Expected behavior
I would like to see my custom template (uploaded via PUT's curl) shown in Dashboards' "Index management->Templates" menu like any other.

OpenSearch Version
Last one, run as a Podman pod:

{
  "name" : "miOS",
  "cluster_name" : "docker-cluster",
  "cluster_uuid" : "QT5z15_8QNKsVsY0KmkMPg",
  "version" : {
    "distribution" : "opensearch",
    "number" : "2.11.1",
    "build_type" : "tar",
    "build_hash" : "6b1986e964d440be9137eba1413015c31c5a7752",
    "build_date" : "2023-11-29T21:43:10.135035992Z",
    "build_snapshot" : false,
    "lucene_version" : "9.7.0",
    "minimum_wire_compatibility_version" : "7.10.0",
    "minimum_index_compatibility_version" : "7.0.0"
  },
  "tagline" : "The OpenSearch Project: https://opensearch.org/"
}

Dashboards Version
I don't know how to see this but it's from the "latest" version image in Docker's hub

Plugins
Whichever comes by default in Docker's hub images

Host/Environment (please complete the following information):

  • OS: Fedora 39
  • Browser and version Firefox 122
@q2dg q2dg added bug Something isn't working untriaged labels Feb 15, 2024
@AMoo-Miki
Copy link
Contributor

@opensearch-project/admin please move to opensearch-project/index-management-dashboards-plugin.

@gaiksaya gaiksaya transferred this issue from opensearch-project/OpenSearch-Dashboards Feb 17, 2024
@dblock dblock removed the untriaged label Jun 17, 2024
@dblock
Copy link
Member

dblock commented Jun 17, 2024

Catch All Triage - 1 2 3 4 5

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

No branches or pull requests

3 participants