i,m running elastic stack on docker and with ssl security enable.
this is my logstash.yml file
http.host: "0.0.0.0"
xpack.monitoring.elasticsearch.hosts: [ "https://elasticsearch:9200" ]
xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.username: logstash_system
xpack.monitoring.elasticsearch.password: *****
path.config: /etc/logstash/conf.d/*.conf
xpack.monitoring.elasticsearch.ssl.certificate_authority: /usr/share/elasticsearch/config/certificates/ca/ca.crt
and pipeline.conf
input {
tcp {
port => 5000
}
}
output {
elasticsearch {
hosts => "https://elasticsearch:9200"
user => "logstash_writer"
cacert => '/usr/share/elasticsearch/config/certificates/ca/ca.crt'
password => ******
}
}
i created logstash_writer user with required roles . when i start logstash container, i face to this message
2020-11-16T08:34:31.120315588Z Sending Logstash logs to /usr/share/logstash/logs which is now configured via log4j2.properties
2020-11-16T08:34:31.256748933Z [2020-11-16T08:34:31,254][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"7.9.1", "jruby.version"=>"jruby 9.2.13.0 (2.5.7) 2020-08-03 9a89c94bcc OpenJDK 64-Bit Server VM 11.0.8+10-LTS on 11.0.8+10-LTS +indy +jit [linux-x86_64]"}
2020-11-16T08:34:31.575792235Z [2020-11-16T08:34:31,575][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
2020-11-16T08:34:32.148044896Z [2020-11-16T08:34:32,147][WARN ][deprecation.logstash.monitoringextension.pipelineregisterhook] Internal collectors option for Logstash monitoring is deprecated and targeted for removal in the next major version.
2020-11-16T08:34:32.148068535Z Please configure Metricbeat to monitor Logstash. Documentation can be found at:
2020-11-16T08:34:32.148073283Z https://www.elastic.co/guide/en/logstash/current/monitoring-with-metricbeat.html
2020-11-16T08:34:32.969676383Z [2020-11-16T08:34:32,964][INFO ][logstash.licensechecker.licensereader] Elasticsearch pool URLs updated {:changes=>{:removed=>[], :added=>[https://logstash_system:xxxxxx@elasticsearch:9200/]}}
{:url=>"https://logstash_system:xxxxxx@elasticsearch:9200/"}
2020-11-16T08:34:33.586265124Z [2020-11-16T08:34:33,585][INFO ][logstash.licensechecker.licensereader] ES Output version determined {:es_version=>7}
2020-11-16T08:34:33.589928143Z [2020-11-16T08:34:33,589][WARN ][logstash.licensechecker.licensereader] Detected a 6.x and above cluster: the `type` event field won't be used to determine the document _type {:es_version=>7}
2020-11-16T08:34:33.724245573Z [2020-11-16T08:34:33,724][INFO ][logstash.monitoring.internalpipelinesource] Monitoring License OK
2020-11-16T08:34:33.725057874Z [2020-11-16T08:34:33,724][INFO ][logstash.monitoring.internalpipelinesource] Validated license for monitoring. Enabling monitoring pipeline.
2020-11-16T08:34:33.815155638Z [2020-11-16T08:34:33,814][INFO ][logstash.config.source.local.configpathloader] No config files found in path {:path=>"/etc/logstash/conf.d/*.conf"}
2020-11-16T08:34:34.930455484Z [2020-11-16T08:34:34,930][INFO ][org.reflections.Reflections] Reflections took 40 ms to scan 1 urls, producing 22 keys and 45 values
2020-11-16T08:34:35.091871327Z [2020-11-16T08:34:35,091][WARN ][logstash.outputs.elasticsearchmonitoring][.monitoring-logstash] ** WARNING ** Detected UNSAFE options in elasticsearch output configuration!
2020-11-16T08:34:35.091908736Z ** WARNING ** You have enabled encryption but DISABLED certificate verification.
2020-11-16T08:34:35.091917237Z ** WARNING ** To make sure your data is secure change :ssl_certificate_verification to true
2020-11-16T08:34:35.148184203Z [2020-11-16T08:34:35,147][INFO ][logstash.outputs.elasticsearchmonitoring][.monitoring-logstash] Elasticsearch pool URLs updated {:changes=>{:removed=>[], :added=>[https://logstash_system:xxxxxx@elasticsearch:9200/]}}
2020-11-16T08:34:35.200325984Z [2020-11-16T08:34:35,200][WARN ][logstash.outputs.elasticsearchmonitoring][.monitoring-logstash] Restored connection to ES instance {:url=>"https://logstash_system:xxxxxx@elasticsearch:9200/"}
2020-11-16T08:34:35.209871289Z [2020-11-16T08:34:35,209][INFO ][logstash.outputs.elasticsearchmonitoring][.monitoring-logstash] ES Output version determined {:es_version=>7}
2020-11-16T08:34:35.210524630Z [2020-11-16T08:34:35,210][WARN ][logstash.outputs.elasticsearchmonitoring][.monitoring-logstash] Detected a 6.x and above cluster: the `type` event field won't be used to determine the document _type {:es_version=>7}
2020-11-16T08:34:35.255195494Z [2020-11-16T08:34:35,254][INFO ][logstash.outputs.elasticsearchmonitoring][.monitoring-logstash] New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearchMonitoring", :hosts=>["https://elasticsearch:9200"]}
2020-11-16T08:34:35.276955888Z [2020-11-16T08:34:35,276][WARN ][logstash.javapipeline ][.monitoring-logstash] 'pipeline.ordered' is enabled and is likely less efficient, consider disabling if preserving event order is not necessary
2020-11-16T08:34:35.346930351Z [2020-11-16T08:34:35,346][INFO ][logstash.javapipeline ][.monitoring-logstash] Starting pipeline {:pipeline_id=>".monitoring-logstash", "pipeline.workers"=>1, "pipeline.batch.size"=>2, "pipeline.batch.delay"=>50, "pipeline.max_inflight"=>2, "pipeline.sources"=>["monitoring pipeline"], :thread=>"#<Thread:0x19f9b5d0 run>"}
2020-11-16T08:34:35.959862754Z [2020-11-16T08:34:35,959][INFO ][logstash.javapipeline ][.monitoring-logstash] Pipeline Java execution initialization time {"seconds"=>0.61}
2020-11-16T08:34:35.984941406Z [2020-11-16T08:34:35,984][INFO ][logstash.javapipeline ][.monitoring-logstash] Pipeline started {"pipeline.id"=>".monitoring-logstash"}
2020-11-16T08:34:36.042730614Z [2020-11-16T08:34:36,042][INFO ][logstash.agent ] Pipelines running {:count=>1, :running_pipelines=>[:".monitoring-logstash"], :non_running_pipelines=>[]}
2020-11-16T08:34:36.208647874Z [2020-11-16T08:34:36,208][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
2020-11-16T08:34:38.195292749Z [2020-11-16T08:34:38,194][INFO ][logstash.javapipeline ] Pipeline terminated {"pipeline.id"=>".monitoring-logstash"}
2020-11-16T08:34:38.229489078Z [2020-11-16T08:34:38,229][INFO ][logstash.runner ] Logstash shut down.
2020-11-16T08:34:39.085339262Z OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2020-11-16T08:34:53.831760691Z WARNING: An illegal reflective access operation has occurred
2020-11-16T08:34:53.831803182Z WARNING: Illegal reflective access by org.jruby.ext.openssl.SecurityHelper (file:/tmp/jruby-1/jruby15212740039221620722jopenssl.jar) to field java.security.MessageDigest.provider
2020-11-16T08:34:53.831809551Z WARNING: Please consider reporting this to the maintainers of org.jruby.ext.openssl.SecurityHelper
2020-11-16T08:34:53.831814352Z WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
2020-11-16T08:34:53.832327396Z WARNING: All illegal access operations will be denied in a future release
2020-11-16T08:34:54.979583767Z Sending Logstash logs to /usr/share/logstash/logs which is now configured via log4j2.properties
2020-11-16T08:34:55.137145166Z [2020-11-16T08:34:55,135][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"7.9.1", "jruby.version"=>"jruby 9.2.13.0 (2.5.7) 2020-08-03 9a89c94bcc OpenJDK 64-Bit Server VM 11.0.8+10-LTS on 11.0.8+10-LTS +indy +jit [linux-x86_64]"}
2020-11-16T08:34:55.471500142Z [2020-11-16T08:34:55,471][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
2020-11-16T08:34:56.043696850Z [2020-11-16T08:34:56,043][WARN ][deprecation.logstash.monitoringextension.pipelineregisterhook] Internal collectors option for Logstash monitoring is deprecated and targeted for removal in the next major version.
2020-11-16T08:34:56.043723790Z Please configure Metricbeat to monitor Logstash. Documentation can be found at:
2020-11-16T08:34:56.043729153Z https://www.elastic.co/guide/en/logstash/current/monitoring-with-metricbeat.html
2020-11-16T08:34:56.900123735Z [2020-11-16T08:34:56,895][INFO ][logstash.licensechecker.licensereader] Elasticsearch pool URLs updated {:changes=>{:removed=>[], :added=>[https://logstash_system:xxxxxx@elasticsearch:9200/]}}
2020-11-16T08:34:57.365544806Z [2020-11-16T08:34:57,365][WARN ][logstash.licensechecker.licensereader] Restored connection to ES instance {:url=>"https://logstash_system:xxxxxx@elasticsearch:9200/"}
2020-11-16T08:34:57.408477269Z [2020-11-16T08:34:57,408][INFO ][logstash.licensechecker.licensereader] ES Output version determined {:es_version=>7}
2020-11-16T08:34:57.412705254Z [2020-11-16T08:34:57,410][WARN ][logstash.licensechecker.licensereader] Detected a 6.x and above cluster: the `type` event field won't be used to determine the document _type {:es_version=>7}
2020-11-16T08:34:57.556168465Z [2020-11-16T08:34:57,555][INFO ][logstash.monitoring.internalpipelinesource] Monitoring License OK
2020-11-16T08:34:57.557359822Z [2020-11-16T08:34:57,557][INFO ][logstash.monitoring.internalpipelinesource] Validated license for monitoring. Enabling monitoring pipeline.
2020-11-16T08:34:57.661778199Z [2020-11-16T08:34:57,661][INFO ][logstash.config.source.local.configpathloader] No config files found in path {:path=>"/etc/logstash/conf.d/*.conf"}
2020-11-16T08:34:58.693128734Z [2020-11-16T08:34:58,692][INFO ][org.reflections.Reflections] Reflections took 30 ms to scan 1 urls, producing 22 keys and 45 values
2020-11-16T08:34:58.853347707Z [2020-11-16T08:34:58,852][WARN ][logstash.outputs.elasticsearchmonitoring][.monitoring-logstash] ** WARNING ** Detected UNSAFE options in elasticsearch output configuration!
2020-11-16T08:34:58.853385813Z ** WARNING ** You have enabled encryption but DISABLED certificate verification.
2020-11-16T08:34:58.853391576Z ** WARNING ** To make sure your data is secure change :ssl_certificate_verification to true
2020-11-16T08:34:58.898698532Z [2020-11-16T08:34:58,897][INFO ][logstash.outputs.elasticsearchmonitoring][.monitoring-logstash] Elasticsearch pool URLs updated {:changes=>{:removed=>[], :added=>[https://logstash_system:xxxxxx@elasticsearch:9200/]}}
2020-11-16T08:34:58.974360067Z [2020-11-16T08:34:58,973][WARN ][logstash.outputs.elasticsearchmonitoring][.monitoring-logstash] Restored connection to ES instance {:url=>"https://logstash_system:xxxxxx@elasticsearch:9200/"}
2020-11-16T08:34:58.991679175Z [2020-11-16T08:34:58,991][INFO ][logstash.outputs.elasticsearchmonitoring][.monitoring-logstash] ES Output version determined {:es_version=>7}
2020-11-16T08:34:58.991915099Z [2020-11-16T08:34:58,991][WARN ][logstash.outputs.elasticsearchmonitoring][.monitoring-logstash] Detected a 6.x and above cluster: the `type` event field won't be used to determine the document _type {:es_version=>7}
2020-11-16T08:34:59.040218347Z [2020-11-16T08:34:59,039][INFO ][logstash.outputs.elasticsearchmonitoring][.monitoring-logstash] New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearchMonitoring", :hosts=>["https://elasticsearch:9200"]}
2020-11-16T08:34:59.055800400Z [2020-11-16T08:34:59,055][WARN ][logstash.javapipeline ][.monitoring-logstash] 'pipeline.ordered' is enabled and is likely less efficient, consider disabling if preserving event order is not necessary
2020-11-16T08:34:59.171979827Z [2020-11-16T08:34:59,171][INFO ][logstash.javapipeline ][.monitoring-logstash] Starting pipeline {:pipeline_id=>".monitoring-logstash", "pipeline.workers"=>1, "pipeline.batch.size"=>2, "pipeline.batch.delay"=>50, "pipeline.max_inflight"=>2, "pipeline.sources"=>["monitoring pipeline"], :thread=>"#<Thread:0x6af1e75e run>"}
2020-11-16T08:34:59.769330509Z [2020-11-16T08:34:59,768][INFO ][logstash.javapipeline ][.monitoring-logstash] Pipeline Java execution initialization time {"seconds"=>0.59}
2020-11-16T08:34:59.802126246Z [2020-11-16T08:34:59,801][INFO ][logstash.javapipeline ][.monitoring-logstash] Pipeline started {"pipeline.id"=>".monitoring-logstash"}
2020-11-16T08:34:59.885412596Z [2020-11-16T08:34:59,885][INFO ][logstash.agent ] Pipelines running {:count=>1, :running_pipelines=>[:".monitoring-logstash"], :non_running_pipelines=>[]}
2020-11-16T08:35:00.079522790Z [2020-11-16T08:35:00,079][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
2020-11-16T08:35:02.018848882Z [2020-11-16T08:35:02,018][INFO ][logstash.javapipeline ] Pipeline terminated {"pipeline.id"=>".monitoring-logstash"}
2020-11-16T08:35:02.063938270Z [2020-11-16T08:35:02,063][INFO ][logstash.runner ] Logstash shut down.
and logstash container keep restating again and again.
what iam doing wrong?