anchor.diff:      <%- if @filebeat_config['output']['logstash']['ssl']['verification_mode'] != nil -%>
       verification_mode: <%= @filebeat_config['output']['logstash']['ssl']['verification_mode'] %>
       <%- end -%>
  -    <%- if @filebeat_config['output']['logstash']['ssl']['supported_protocols'].length > 0 -%>
  +    <%- if @filebeat_config['output']['logstash']['ssl']['supported_protocols'] != nil -%>
       supported_protocols:
       <%- @filebeat_config['output']['logstash']['ssl']['supported_protocols'].each do |protocol| -%>
         - <%= protocol %>
       <%- end -%>
       <%- end -%>
  -    <%- if @filebeat_config['output']['logstash']['ssl']['certificate_authorities'].length > 0 -%>
  +    <%- if @filebeat_config['output']['logstash']['ssl']['certificate_authorities'] != nil -%>
       certificate_authorities:
       <%- @filebeat_config['output']['logstash']['ssl']['certificate_authorities'].each do |ca| -%>
         - <%= ca %>
  
positive.code:     <%- if @filebeat_config['output']['elasticsearch']['ssl']['key_passphrase'] != nil -%>
      key_passphrase: '<%= @filebeat_config['output']['elasticsearch']['ssl']['key_passphrase'] %>'
      <%- end -%>
      <%- if @filebeat_config['output']['elasticsearch']['ssl']['cipher_suites'].length > 0 -%>
      cipher_suites:
      <%- @filebeat_config['output']['elasticsearch']['ssl']['cipher_suites'].each do |cipher_suite| -%>
        - <%= cipher_suite %>
        <%- end -%>
      <%- end -%>
      <%- if @filebeat_config['output']['elasticsearch']['ssl']['curve_types'].length > 0 -%>
      curve_types:
      <%- @filebeat_config['output']['elasticsearch']['ssl']['curve_types'].each do |curve_type| -%>
        - <%= curve_type %>
  
negative.code:     <%- if @filebeat_config['output']['redis']['ssl']['key_passphrase'] != nil -%>
      key_passphrase: '<%= @filebeat_config['output']['redis']['ssl']['key_passphrase'] %>'
      <%- end -%>
      <%- if @filebeat_config['output']['redis']['ssl']['cipher_suites'] != nil -%>
      cipher_suites:
      <%- @filebeat_config['output']['redis']['ssl']['cipher_suites'].each do |cipher_suite| -%>
        - <%= cipher_suite %>
      <%- end -%>
      <%- end -%>
      <%- if @filebeat_config['output']['redis']['ssl']['curve_types'] != nil -%>
      curve_types:
      <%- @filebeat_config['output']['redis']['ssl']['curve_types'].each do |curve_type| -%>
        - <%= curve_type %>
  