Trying to connect to elasticsearch using jenkins logstash plugin

Hi I've installed logstash plugin on jenkins. and elk stack 8.5.1 with authentication. I can access elasticsearch only using https with -k flag. How can i configure logstash to access elasticsaearch.


when i enter only http in url it fails. when i enter https it gives certificate error. how can i fix this?

What is the error you are getting?

figured it out. set it up without https