Skip to content

Commit 17c2a57

Browse files
kvchmergify-bot
authored andcommitted
Update Index template loading guide to use the correct endpoint (#29869)
This PR updates the documentation for loading index templates manually. The endpoint used in the documentation was outdated. That lead to some confusion. (cherry picked from commit 055798a)
1 parent a252fd1 commit 17c2a57

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

libbeat/docs/howto/load-index-templates.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ ifdef::deb_os,rpm_os[]
294294

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

@@ -303,7 +303,7 @@ ifdef::mac_os[]
303303

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

@@ -312,7 +312,7 @@ ifdef::linux_os[]
312312

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

@@ -323,6 +323,6 @@ endif::win_only[]
323323

324324
["source","sh",subs="attributes"]
325325
----
326-
PS > Invoke-RestMethod -Method Put -ContentType "application/json" -InFile {beatname_lc}.template.json -Uri http://localhost:9200/_template/{beatname_lc}-{version}
326+
PS > Invoke-RestMethod -Method Put -ContentType "application/json" -InFile {beatname_lc}.template.json -Uri http://localhost:9200/_index_template/{beatname_lc}-{version}
327327
----
328328
endif::win_os[]

libbeat/docs/upgrading.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ layer. See <<enable-ecs-compatibility>>.
330330
+
331331
["source","sh",subs="attributes"]
332332
----
333-
DELETE /_template/metricbeat-{version}
333+
DELETE /_index_template/metricbeat-{version}
334334
----
335335
+
336336
Because the index template was loaded without the compatibility layer enabled,

0 commit comments

Comments
 (0)