Problem with recalculate index by curl

Hello,

When i use graylog interface to recalculate index, i’ve no problem, it’s ok (System/indices/my indice / Maintenance / recalculate index range)

But when i do it by curl, there is no effect…
curl -XPOST hxxp://127.0.0.1:9000/api/system/indices/ranges/rebuild

i try to rebuild specific index after doing curl -XGET http://localhost:9200/_cat/indices and select my index and do
curl -XPOST hxxp://127.0.0.1:9000/api/system/indices/ranges/index_set/graylog_0/rebuild

Have you an idea why ? For my project, i need to recalculate it by curl, so i search an issue.

Regards

you need to make this request authenticated as administrator. … if that is not working, check the Graylog server.log.

Thanks a lot, it’s work with a admin user

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