How to add authentication to elastic transport client. Are there any opensource authentication plugins for elastic search. I tried with readonlyrest and searchguard but both of them did not satisfy my requirement.
To use transport level authentication with Search Guard do:
See also https://floragunn.com/transport-client-authentication-authorization/