Hello @leandrojmp Thank you for your reply, I passing the Elasticsearch configuration in logstash conf file. I tried with both HTTP and HTTPS Elasticsearch but both the things are showing the same error.
apiVersion: v1
kind: ConfigMap
metadata:
name: logstash-configmap
namespace: kube-system
data:
logstash.yml: |
http.host: "0.0.0.0"
path.config: /usr/share/logstash/pipeline
logstash.conf: |
input {
file {
path => "/var/log/containers"
}
}
output {
stdout {
codec => rubydebug
}
elasticsearch {
ilm_enabled => false
hosts => ["https://xxx.xxx.xx.xx:9200"]
user => 'xxxx'
password => 'xxxxxxxxx'
index => "logstash-beta-%{+YYYY.MM.dd}"
ssl_certificate_verification => false
}
}