DIsable Logstash Console Logs

Hi everyone,

I am trying to disable the logstash from writing all the console logs because due to a lot off i/o activity the ec2 throws error too much work for irq4

output {
amazon_es {
hosts => [""]
region => "us-east-1"
aws_access_key_id => '
aws_secret_access_key => '*'
index => "%{file}"
template_name => "sqe_template"
template_overwrite => "true"
codec => "json"


This is my output file, is it writing to the console logs , I need codec => json as its formats the output in the correct way for it to appear in elasticsearch kibanna.

Any suggestions will be helpful

Thank You