Reopen index command

how can i reopen index in graylog 5.2.2

I have try the follow command

curl -v -X POST “http://127.0.0.1:9200/api/indexes/reopen?indexNames=graylog_242

curl -v -X POST “http://127.0.0.1:9200/api/cluster/indices/graylog_242/reopen

but not work

any one helps
tks a lot

What are you trying to accomplish by reopening an index, it’s not something Graylog is generally built to require or even really support?

to search old data in close index
it can be reopen at web
but if it can be reopen use command
because need to reopen many index at once
not easy to do in web

I would use the Graylog API to automate it rather than the opensearch API. The easiest way to find out the required API call is to open the inspector in your browser and just look for the API call in the network tab when you click it manually via the gui. This will ensure if there any steps on the Graylog side that they will also be completed.

try it by myself

curl -v -X POST -H “Content-Type: application/json” -H “X-Requested-By: XMLHttpRequest” -u user:password http://127.0.0.1:9000/api/system/indexer/indices/graylog_245/reopen

thanks for your help

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.