I am trying to connect my kubernetes logstash with opensearch using the oss plugin. I used to be able to connect before enabling fine-grained control on opensearch. Now I just get 401 responses. When I curl to opensearch from the pod, I am receiving a good response from opensearch, so I have to believe my config must be incorrect in my pipeline. Here is how I have things set up
output {
opensearch {
hosts => ["host:443"]
index => "index_%{+YYYYMMdd}_v3"
user => 'user'
password => 'password'
}
}
Thanks so much for help, I ended up resolving my issue. I think this is a pretty uncommon issue but in case anyone else runs into it, I had previously tried to use an irsa role to authenticate with the logstash.rbac values. This ended up not working so I deleted the values but the values didn’t end up getting repopulated with the default ones and instead kept my custom service role. I had to manually set them to default, and then for good measure I deleted the service account as well. This got the 401s to go away.