Hello, Chris, thank you very much for your reply.
I do as you said, but for some reason I also show elasticsearch indeсes in that page, but not opensearch. Is this normal?
And when I click Recalculate index ranges I see that message:
“Could not create a job to start index ranges recalculation for graylog_deflector, reason: FetchError: There was an error fetching a resource: Bad Request. Additional information: graylog_deflector is not a Graylog-managed Elasticsearch index.”
Why there is mentioned Elasticsearch again?
Logs is:
2023-02-07T09:54:28.868+07:00 ERROR [AnyExceptionClassMapper] Unhandled exception in REST resource
java.lang.IllegalArgumentException: No JobDefinition for archiving restore action found!
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:145) ~[graylog.jar:?]
at org.graylog.plugins.archive.job.ArchivingJobHandler.getArchiveRestoreJobDefinition(ArchivingJobHandler.java:42) ~[?:?]
at org.graylog.plugins.archive.job.ArchivingJobHandler.getTypeQuery(ArchivingJobHandler.java:95) ~[?:?]
at org.graylog.plugins.archive.job.ArchivingJobHandler.listArchiveTriggers(ArchivingJobHandler.java:110) ~[?:?]
at org.graylog.plugins.archive.job.ArchivingJobResourceHandler.listAllJobs(ArchivingJobResourceHandler.java:35) ~[?:?]
at org.graylog.scheduler.rest.JobResourceHandlerService.lambda$listJobs$0(JobResourceHandlerService.java:48) ~[graylog.jar:?]
at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) ~[?:?]
at java.util.Iterator.forEachRemaining(Unknown Source) ~[?:?]
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Unknown Source) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:?]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:?]
at java.util.stream.ReferencePipeline.collect(Unknown Source) ~[?:?]
at org.graylog.scheduler.rest.JobResourceHandlerService.listJobs(JobResourceHandlerService.java:48) ~[graylog.jar:?]
at org.graylog.scheduler.rest.JobResourceHandlerService.listJobsAsSystemJobSummary(JobResourceHandlerService.java:52) ~[graylog.jar:?]
at org.graylog2.rest.resources.cluster.ClusterSystemJobResource.list(ClusterSystemJobResource.java:89) ~[graylog.jar:?]
at jdk.internal.reflect.GeneratedMethodAccessor72.invoke(Unknown Source) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
And Graylog logs:
Feb 06 17:30:51 krk-log101 systemd[1]: Started Graylog server.
Feb 06 17:30:51 krk-log101 graylog-server[12142]: WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
I also found several solutions that suggested stopping Graylog, removing the indexes and running.
I go through these steps, but the result is that I get this error again.
curl -X GET “localhost:9200/_cluster/allocation/explain?filter_path=index,node_allocation_decisions.node_name,node_allocation_decisions.deciders.*&pretty” -H ‘Content-Type: application/json’ -d’
{
“index”: “my-index”,
“shard”: 0,
“primary”: false,
“current_node”: “my-node”
}
’
{
“error” : {
“root_cause” : [
{
“type” : “index_not_found_exception”,
“reason” : “no such index [my-index]”,
“index” : “my-index”,
“index_uuid” : “na”
}
],
“type” : “index_not_found_exception”,
“reason” : “no such index [my-index]”,
“index” : “my-index”,
“index_uuid” : “na”
},
“status” : 404
}