wiki:elasticsearch_troubleshooting
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| wiki:elasticsearch_troubleshooting [2022/01/12 15:29] – created antisa | wiki:elasticsearch_troubleshooting [2024/07/23 11:28] (current) – add opensearch curl error antisa | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{tag> | + | {{tag> |
| - | ====== Elasticsearch troubleshooting ====== | + | ====== Elasticsearch/ |
| If graylog stops showing message streams it could be an issue with indexes. | If graylog stops showing message streams it could be an issue with indexes. | ||
| Line 88: | Line 88: | ||
| Then you might have to recalculate the index ranges ('' | Then you might have to recalculate the index ranges ('' | ||
| - | ====== Tested on ====== | + | |
| + | |||
| + | ===== Tested on ===== | ||
| * Graylog 3.3.16 | * Graylog 3.3.16 | ||
| * Debian 9.13 Stretch | * Debian 9.13 Stretch | ||
| - | ====== See also ====== | + | ===== Unable to write to elasticsearch |
| + | Trying to GET some data from the ES works but POST does not. The issue could be that the ES was put into read-only mode. It does this if the free space on server starts getting low. In that case you'll get this warning: | ||
| + | < | ||
| + | [4:39 PM] { | ||
| + | " | ||
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | ], | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | If you are running in docker you might see a less useful message like: | ||
| + | < | ||
| + | [2022-04-21T13: | ||
| + | </ | ||
| + | |||
| + | |||
| + | Free some disk space for example delete an old index (see howto for [[wiki: | ||
| + | |||
| + | curl -X DELETE -u undefined: | ||
| + | |||
| + | and run this: | ||
| + | curl -XPUT -H " | ||
| + | |||
| + | You can also change the watermark threshold e.g. | ||
| + | |||
| + | |||
| + | curl -X PUT -u undefined: | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | }' | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | ===== snapshot missing exception ===== | ||
| + | If you get an error like: | ||
| + | |||
| + | " | ||
| + | |||
| + | Delete the snapshot repo | ||
| + | |||
| + | curl -X DELETE -u undefined: | ||
| + | |||
| + | and try listing again. | ||
| + | |||
| + | ===== index ... is the write index for the datastream ===== | ||
| + | When trying to delete the index like | ||
| + | |||
| + | curl -XDELETE ' | ||
| + | |||
| + | you get | ||
| + | |||
| + | < | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | ], | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | } | ||
| + | |||
| + | </ | ||
| + | |||
| + | you need to rollover to the new index, e.g. | ||
| + | |||
| + | curl -s -X POST " | ||
| + | |||
| + | and run delete command again. | ||
| + | |||
| + | ===== curl (52) empty reply from server ===== | ||
| + | Happened with OpenSearch docker compose installation trying this: | ||
| + | |||
| + | curl -u admin: | ||
| + | | ||
| + | It needs the certificate file in the command but if you are testing, easiest is just to disable the ssl. Add the following line in '' | ||
| + | < | ||
| + | - plugins.security.ssl.http.enabled=false | ||
| + | </ | ||
| + | |||
| + | and rerun | ||
| + | docker-compose up -d | ||
| + | |||
| + | ===== Tested on ===== | ||
| + | * Debian 10 | ||
| + | * Elastic search docker container ver. 6.8.16 | ||
| + | |||
| + | ====== See also ====== | ||
| + | * [[wiki: | ||
| + | * [[wiki: | ||
| + | * [[wiki: | ||
| ====== References ====== | ====== References ====== | ||
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
wiki/elasticsearch_troubleshooting.1642001378.txt.gz · Last modified: by antisa
