# DIsable Logstash Console Logs

**URL:** https://discuss.elastic.co/t/disable-logstash-console-logs/185669
**Category:** Logstash
**Created:** [June 13, 2019, 2:31pm UTC](https://discuss.elastic.co/t/disable-logstash-console-logs/185669 "2019-06-13T14:31:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mohit\_Ruke](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohit_ruke/32/46323_2.png) [@Mohit\_Ruke](https://discuss.elastic.co/u/Mohit_Ruke)
#### Post date: [June 13, 2019, 2:31pm UTC](https://discuss.elastic.co/t/disable-logstash-console-logs/185669/1 "2019-06-13T14:31:22Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 11, 2019, 2:31pm UTC](https://discuss.elastic.co/t/disable-logstash-console-logs/185669/2 "2019-07-11T14:31:25Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
