I have this config file (/etc/logstash/conf.g/my.config).
...
output {
elasticsearch {
hosts => ["XXXX"]
index => "search_log-%{+YYYY.MM.dd}"
user => "XXXX"
password => "XXXX"
ssl => true
cacert => "/etc/logstash/certs"
}
#stdout{}
}
When start logstash, syslog print this error log.
May 17 02:53:42 localhost logstash[1860]: [2021-05-17T02:53:42,125][ERROR][logstash.outputs.elasticsearch] Invalid setting for elasticsearch output plugin:
May 17 02:53:42 localhost logstash[1860]: output {
May 17 02:53:42 localhost logstash[1860]: elasticsearch {
May 17 02:53:42 localhost logstash[1860]: # This setting must be a path
May 17 02:53:42 localhost logstash[1860]: # File does not exist or cannot be opened certs/chainca.crt
May 17 02:53:42 localhost logstash[1860]: cacert => "certs/chainca.crt"
May 17 02:53:42 localhost logstash[1860]: ...
May 17 02:53:42 localhost logstash[1860]: }
May 17 02:53:42 localhost logstash[1860]: }
May 17 02:53:42 localhost logstash[1860]: [2021-05-17T02:53:42,139][ERROR][logstash.licensechecker.licensereader] Unable to retrieve license information from license server {:message=>"Something is wrong with your configuration."}
May 17 02:53:42 localhost logstash[1860]: [2021-05-17T02:53:42,160][ERROR][logstash.monitoring.internalpipelinesource] Failed to fetch X-Pack information from Elasticsearch. This is likely due to failure to reach a live Elasticsearch cluster.
....
....
....
"pipeline.sources"=>["/etc/logstash/conf.d/my.conf"],
....
....
In this error log, contents of the config file is different from ours. But here, this file directory appear the same as our config file. (I have only one config file '/etc/logstash/conf.d/my.config')
Like above config file, I already edited cacert part to directory.
version - 7.10.2
Help me. . . .