output {
  <% if node['logstash']['instance']['indexer']['debug'] -%>
  stdout { debug => true }
  <% end -%>
  <%= LogstashConf.section_to_str(node['logstash']['instance']['indexer']['outputs']) %>
}

output {
  <% if node['logstash']['instance'][@instance_name]['debug'] -%>
  stdout { debug => true }
  <% end -%>
  <%= LogstashConf.section_to_str(node['logstash']['instance'][@instance_name]['outputs']) %>
}

Fix hardcoded attribute key to variable
Fix hardcoded attribute key to variable
