Logstash throwing 401 while connecting with AWS Elasticservice
The issue is with Logstash Elasticsearch Output Plugin trying to verify license on the URL <hostname>/_license
.
Refer LS should always perform ES license check · Issue #1004 · logstash-plugins/logstash-output-elasticsearch for reported issue/fix.
While that fix gets released, you can follow these steps to get it working:
- Head over to
/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-11.0.2-java/lib/logstash/outputs/elasticsearch
- Open file
license_checker.rb
-> Change the methodappropriate_license
as per the fix suggested in the above github issue. Making methodappropriate_license()
return true in case ofOSS
setup.