Skip to content

Commit

Permalink
Update Index template loading guide to use the correct endpoint (#29869)
Browse files Browse the repository at this point in the history
This PR updates the documentation for loading index templates manually. The endpoint used in the documentation was outdated. That lead to some confusion.
  • Loading branch information
kvch authored Jan 17, 2022
1 parent 181b83a commit 055798a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions libbeat/docs/howto/load-index-templates.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ ifdef::deb_os,rpm_os[]

["source","sh",subs="attributes"]
----
curl -XPUT -H 'Content-Type: application/json' http://localhost:9200/_template/{beatname_lc}-{version} -d@{beatname_lc}.template.json
curl -XPUT -H 'Content-Type: application/json' http://localhost:9200/_index_template/{beatname_lc}-{version} -d@{beatname_lc}.template.json
----
endif::deb_os,rpm_os[]

Expand All @@ -301,7 +301,7 @@ ifdef::mac_os[]

["source","sh",subs="attributes"]
----
curl -XPUT -H 'Content-Type: application/json' http://localhost:9200/_template/{beatname_lc}-{version} -d@{beatname_lc}.template.json
curl -XPUT -H 'Content-Type: application/json' http://localhost:9200/_index_template/{beatname_lc}-{version} -d@{beatname_lc}.template.json
----
endif::mac_os[]

Expand All @@ -310,7 +310,7 @@ ifdef::linux_os[]

["source","sh",subs="attributes"]
----
curl -XPUT -H 'Content-Type: application/json' http://localhost:9200/_template/{beatname_lc}-{version} -d@{beatname_lc}.template.json
curl -XPUT -H 'Content-Type: application/json' http://localhost:9200/_index_template/{beatname_lc}-{version} -d@{beatname_lc}.template.json
----
endif::linux_os[]

Expand All @@ -321,6 +321,6 @@ endif::win_only[]

["source","sh",subs="attributes"]
----
PS > Invoke-RestMethod -Method Put -ContentType "application/json" -InFile {beatname_lc}.template.json -Uri http://localhost:9200/_template/{beatname_lc}-{version}
PS > Invoke-RestMethod -Method Put -ContentType "application/json" -InFile {beatname_lc}.template.json -Uri http://localhost:9200/_index_template/{beatname_lc}-{version}
----
endif::win_os[]
2 changes: 1 addition & 1 deletion libbeat/docs/upgrading.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ layer. See <<enable-ecs-compatibility>>.
+
["source","sh",subs="attributes"]
----
DELETE /_template/metricbeat-{version}
DELETE /_index_template/metricbeat-{version}
----
+
Because the index template was loaded without the compatibility layer enabled,
Expand Down

0 comments on commit 055798a

Please sign in to comment.