Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Missing Content-Type in doc #219

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion admin/backup-restore.md
Original file line number Diff line number Diff line change
Expand Up @@ -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": "<INDEX>"
}'
Expand Down
10 changes: 5 additions & 5 deletions admin/upgrade_to_thehive_3_4_and_es_6_x.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -29,15 +29,15 @@ 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": "<INDEX>"
}'
```

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"
}'
```
Expand Down Expand Up @@ -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
- https://www.elastic.co/guide/en/elasticsearch/reference/6.0/deb.html