From 5a3143565b4fb1c10af0381dac7467ac15816369 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Wed, 17 Feb 2021 08:08:15 +0100
Subject: [PATCH] Correct variable names

---
 docs/ansible/wiki/elk/re-indexing.md | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/docs/ansible/wiki/elk/re-indexing.md b/docs/ansible/wiki/elk/re-indexing.md
index 507a467..4965978 100644
--- a/docs/ansible/wiki/elk/re-indexing.md
+++ b/docs/ansible/wiki/elk/re-indexing.md
@@ -13,13 +13,13 @@ We use `$IDX` for the existing, e.g. broken index and `$IDXNEW` for the new one.
 ## Show number of records for all indexes
 
 ```shell
-curl -X GET 'http://${ELUSER}:${ELPASS}@localhost:9200//_cat/indices/%2A?v=&s=index:desc'
+curl -X GET http://${ESUSER}:${ESPASS}@localhost:9200/_cat/indices/%2A?v=&s=index:desc
 ```
 
 ## Create new index with mappings
 
 ```shell
-curl -X PUT http://${ELUSER}:${ELPASS}@localhost:9200/$IDXNEW \
+curl -X PUT http://${ESUSER}:${ESPASS}@localhost:9200/$IDXNEW \
   -H 'Content-Type: application/json' \
   -d '{
     "mappings": {
@@ -33,7 +33,7 @@ curl -X PUT http://${ELUSER}:${ELPASS}@localhost:9200/$IDXNEW \
 ## Re-index from old to new index
 
 ```shell
-curl -X POST http://${ELUSER}:${ELPASS}@localhost:9200/_reindex \
+curl -X POST http://${ESUSER}:${ESPASS}@localhost:9200/_reindex \
   -H 'Content-Type: application/json' \
   -d '{
     "source": {
@@ -48,13 +48,13 @@ curl -X POST http://${ELUSER}:${ELPASS}@localhost:9200/_reindex \
 ## Delete the old index
 
 ```shell
-curl -X DELETE http://${ELUSER}:${ELPASS}@localhost:9200/$IDX
+curl -X DELETE http://${ESUSER}:${ESPASS}@localhost:9200/$IDX
 ```
 
 ## Delete and recreate alias
 
 ```shell
-curl -X POST http://${ELUSER}:${ELPASS}@localhost:9200/_aliases \
+curl -X POST http://${ESUSER}:${ESPASS}@localhost:9200/_aliases \
   -H 'Content-Type: application/json' \
   -d '{
     "actions": [
@@ -69,7 +69,7 @@ curl -X POST http://${ELUSER}:${ELPASS}@localhost:9200/_aliases \
 ```
 
 ```shell
-curl -X POST http://${ELUSER}:${ELPASS}@localhost:9200/_aliases \
+curl -X POST http://${ESUSER}:${ESPASS}@localhost:9200/_aliases \
   -H 'Content-Type: application/json' \
   -d '{
     "actions": [
-- 
GitLab