title: Disable logs "logstash.outputs.elasticsearch"
body: <p>I want to disable the continuous warn messages being outputted in the logs as</p>
  <pre><code>[2022-09-20T20:28:54,604][WARN ][logstash.outputs.elasticsearch][main] Attempted to resurrect connection to dead ES instance, but got an error {:url=&gt;&quot;http://elasticsearch:9200/&quot;, :exception=&gt;LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError, :message=&gt;&quot;Got response code '401' contacting Elasticsearch at URL 'http://elasticsearch:9200/'&quot;}
  </code></pre>
  <p>I read multiple posts and <code>xpack.monitoring.enabled: false</code> seemed to have worked for people. My logstash config is</p>
  <pre><code>http.host: &quot;0.0.0.0&quot;
  path.config: /usr/share/logstash/pipeline
  pipeline.ecs_compatibility: disabled
  xpack.monitoring.enabled: false
  </code></pre>
  <p>But i still keep getting those warn messages. Is there any way to get rid of them?</p>