anchor.diff:      <%- 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 -%>
  +    <%- if @filebeat_config['output']['elasticsearch']['ssl']['cipher_suites'] != nil -%>
       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 -%>
  +    <%- if @filebeat_config['output']['elasticsearch']['ssl']['curve_types'] != nil -%>
       curve_types:
       <%- @filebeat_config['output']['elasticsearch']['ssl']['curve_types'].each do |curve_type| -%>
         - <%= curve_type %>
  
positive.code:     <%- if @filebeat_config['output']['kafka']['partition']['hash']['reachable_only'] != nil -%>
      reachable_only: <%= @filebeat_config['output']['kafka']['partition']['hash']['reachable_only'] %>
      <%- end -%>
      <%- if @filebeat_config['output']['kafka']['partition']['hash']['hash'].length > 0 -%>
      hash:
      <%- @filebeat_config['output']['kafka']['partition']['hash']['hash'].each do |value| -%>
        - <%= value %>
  
negative.code: #================================ General =====================================
  
  name: <%= @filebeat_config['beat_name'] %>
  <%- if @filebeat_config['tags'] > 0 -%>
  tags:
  <%- @filebeat_config['tags'].each do |tag| -%>
    - <%= tag %>
  