From fce6ed7d05d31a2f14e64e587460924a4e6d8e57 Mon Sep 17 00:00:00 2001 From: Mathieu GELI Date: Thu, 28 Jan 2021 18:04:40 +0100 Subject: [PATCH] Missing Content-Type in doc --- admin/backup-restore.md | 2 +- admin/upgrade_to_thehive_3_4_and_es_6_x.md | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/admin/backup-restore.md b/admin/backup-restore.md index 2364a3a..5788b9d 100644 --- a/admin/backup-restore.md +++ b/admin/backup-restore.md @@ -107,7 +107,7 @@ You can backup the last index of TheHive (you can list indices in your Elasticse Restore will do the reverse actions : it reads the backup in your snapshot directory and loads indices into the Elasticsearch cluster. This operation is done with the following command : ``` -$ curl -XPOST 'http://localhost:9200/_snapshot/the_hive_backup/snapshot_1/_restore' -d ' +$ curl -XPOST 'http://localhost:9200/_snapshot/the_hive_backup/snapshot_1/_restore' -H 'Content-Type: application/json' -d ' { "indices": "" }' diff --git a/admin/upgrade_to_thehive_3_4_and_es_6_x.md b/admin/upgrade_to_thehive_3_4_and_es_6_x.md index f11f1f4..5da4fa9 100644 --- a/admin/upgrade_to_thehive_3_4_and_es_6_x.md +++ b/admin/upgrade_to_thehive_3_4_and_es_6_x.md @@ -5,7 +5,7 @@ This document is related to upgrading TheHive and Elasticsearch on **Ubuntu 16.0 #### Perform a backup of data ```bash -curl -XPUT 'http://localhost:9200/_snapshot/the_hive_backup' -d '{ +curl -XPUT 'http://localhost:9200/_snapshot/the_hive_backup' -H 'Content-Type: application/json' -d '{ "type": "fs", "settings": { "location": "/absolute/path/to/backup/directory", @@ -17,7 +17,7 @@ curl -XPUT 'http://localhost:9200/_snapshot/the_hive_backup' -d '{ For example: ```bash -curl -XPUT 'http://localhost:9200/_snapshot/the_hive_backup' -d '{ +curl -XPUT 'http://localhost:9200/_snapshot/the_hive_backup' -H 'Content-Type: application/json' -d '{ "type": "fs", "settings": { "location": "/opt/backup", @@ -29,7 +29,7 @@ curl -XPUT 'http://localhost:9200/_snapshot/the_hive_backup' -d '{ Next: ```bash -curl -XPUT 'http://localhost:9200/_snapshot/the_hive_backup/snapshot_1?wait_for_completion=true&pretty' -d '{ +curl -XPUT 'http://localhost:9200/_snapshot/the_hive_backup/snapshot_1?wait_for_completion=true&pretty' -H 'Content-Type: application/json' -d '{ "indices": "" }' ``` @@ -37,7 +37,7 @@ curl -XPUT 'http://localhost:9200/_snapshot/the_hive_backup/snapshot_1?wait_for_ For example: ```bash -curl -XPUT 'http://localhost:9200/_snapshot/the_hive_backup/the_hive_152019060701_1?wait_for_completion=true&pretty' -d '{ +curl -XPUT 'http://localhost:9200/_snapshot/the_hive_backup/the_hive_152019060701_1?wait_for_completion=true&pretty' -H 'Content-Type: application/json' -d '{ "indices": "the_hive_15" }' ``` @@ -264,4 +264,4 @@ curl -X GET "localhost:9200/_cat/health?v" - https://www.elastic.co/guide/en/elasticsearch/reference/6.0/rolling-upgrades.html - https://www.elastic.co/guide/en/elasticsearch/reference/6.0/restart-upgrade.html -- https://www.elastic.co/guide/en/elasticsearch/reference/6.0/deb.html \ No newline at end of file +- https://www.elastic.co/guide/en/elasticsearch/reference/6.0/deb.html