title: Logstash pipeline stopped inserting data into elasticsearch
body: <p>Logstash pipeline is not ingesting data into the elasticsearch index though the pipeline was running. This pipeline was deployed one
  year back and it was running well since then. But on 24th May 2021, it stopped ingesting data. Restarting the logstash fixed the issue.
  we have checked logstash logs but did find nothing there. Please see the below log.</p>
  <pre><code>Aug 26 12:08:37 xyz.com logstash[827]: [2020-08-26T12:08:37,503][WARN ][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=&gt;http://localhost:9200/}
  Aug 26 12:08:37 xyz.com logstash[827]: [2020-08-26T12:08:37,619][INFO ][logstash.outputs.elasticsearch] ES Output version determined {:es_version=&gt;6}
  Aug 26 12:08:37 xyz.com logstash[827]: [2020-08-26T12:08:37,623][WARN ][logstash.outputs.elasticsearch] Detected a 6.x and above cluster: the `type` event field won't be used to determine the document _type {:es_version=&gt;6}
  Aug 26 12:24:22 xyz.com systemd[1]: Stopping logstash...
  Aug 26 12:24:22 xyz.com logstash[827]: [2020-08-26T12:24:22,665][WARN ][logstash.runner          ] SIGTERM received. Shutting down.
  Aug 26 12:24:27 xyz.com logstash[827]: [2020-08-26T12:24:27,864][WARN ][org.logstash.execution.ShutdownWatcherExt] {&quot;inflight_count&quot;=&gt;0, &quot;stalling_threads_info&quot;=&gt;{&quot;other&quot;=&gt;[{&quot;thread_id&quot;=&gt;33, &quot;name&quot;=&gt;&quot;[main]&lt;beats&quot;, &quot;current_call&quot;=&gt;&quot;[...]/vendor/bundle/jruby/2.5.0/gems/logstash-input-beats-5.1.9-java/lib/logstash/inputs/beats.rb:212:in `run'&quot;}, {&quot;thread_id&quot;=&gt;25, &quot;name&quot;=&gt;&quot;[main]&gt;worker0&quot;, &quot;current_call&quot;=&gt;&quot;[...]/logstash-core/lib/logstash/pipeline.rb:333:in `read_batch'&quot;}, {&quot;thread_id&quot;=&gt;26, &quot;name&quot;=&gt;&quot;[main]&gt;worker1&quot;, &quot;current_call&quot;=&gt;&quot;[...]/logstash-core/lib/logstash/pipeline.rb:333:in `read_batch'&quot;}, {&quot;thread_id&quot;=&gt;27, &quot;name&quot;=&gt;&quot;[main]&gt;worker2&quot;, &quot;current_call&quot;=&gt;&quot;[...]/logstash-core/lib/logstash/pipeline.rb:333:in `read_batch'&quot;}, {&quot;thread_id&quot;=&gt;28, &quot;name&quot;=&gt;&quot;[main]&gt;worker3&quot;, &quot;current_call&quot;=&gt;&quot;[...]/logstash-core/lib/logstash/pipeline.rb:333:in `read_batch'&quot;}, {&quot;thread_id&quot;=&gt;29, &quot;name&quot;=&gt;&quot;[main]&gt;worker4&quot;, &quot;current_call&quot;=&gt;&quot;[...]/logstash-core/lib/logstash/pipeline.rb:333:in `read_batch'&quot;}, {&quot;thread_id&quot;=&gt;30, &quot;name&quot;=&gt;&quot;[main]&gt;worker5&quot;, &quot;current_call&quot;=&gt;&quot;[...]/logstash-core/lib/logstash/pipeline.rb:333:in `read_batch'&quot;}, {&quot;thread_id&quot;=&gt;31, &quot;name&quot;=&gt;&quot;[main]&gt;worker6&quot;, &quot;current_call&quot;=&gt;&quot;[...]/logstash-core/lib/logstash/pipeline.rb:333:in `read_batch'&quot;}, {&quot;thread_id&quot;=&gt;32, &quot;name&quot;=&gt;&quot;[main]&gt;worker7&quot;, &quot;current_call&quot;=&gt;&quot;[...]/logstash-core/lib/logstash/pipeline.rb:333:in `read_batch'&quot;}]}}
  Aug 26 12:24:27 xyz.com logstash[827]: [2020-08-26T12:24:27,866][ERROR][org.logstash.execution.ShutdownWatcherExt] The shutdown process appears to be stalled due to busy or blocked plugins. Check the logs for more information.
  Aug 26 12:24:29 xyz.com logstash[827]: [2020-08-26T12:24:29,852][INFO ][logstash.pipeline        ] Pipeline has terminated {:pipeline_id=&gt;&quot;main&quot;, :thread=&gt;&quot;#&lt;Thread:0x2c879c55 run&gt;&quot;}
  Aug 26 12:24:29 xyz.com logstash[827]: [2020-08-26T12:24:29,855][INFO ][logstash.runner          ] Logstash shut down.
  Aug 26 12:24:29 xyz.com systemd[1]: Stopped logstash.
  May 24 08:11:46 xyz.com systemd[1]: Started logstash.
  May 24 08:12:11 xyz.com logstash[19174]: Sending Logstash logs to /var/log/logstash which is now configured via log4j2.properties
  May 24 08:12:11 xyz.com logstash[19174]: 2021-05-24 08:12:11,794 main ERROR RollingFileManager (/var/log/logstash/logstash-plain.log) java.io.FileNotFoundException: /var/log/logstash/logstash-plain.log (Permission denied) java.io.FileNotFoundException: /var/log/logstash/logstash-plain.log (Permission denied)
  May 24 08:12:11 xyz.com logstash[19174]:         at java.io.FileOutputStream.open0(Native Method)
  May 24 08:12:11 xyz.com logstash[19174]:         at java.io.FileOutputStream.open(FileOutputStream.java:270)
  May 24 08:12:11 xyz.com logstash[19174]:         at java.io.FileOutputStream.&lt;init&gt;(FileOutputStream.java:213)
  May 24 08:12:11 xyz.com logstash[19174]:         at java.io.FileOutputStream.&lt;init&gt;(FileOutputStream.java:133)
  May 24 08:12:11 xyz.com logstash[19174]:         at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:640)
   
   
   
  May 24 08:12:25 xyz.com logstash[19174]: [2021-05-24T08:12:25,120][INFO ][logstash.agent           ] Pipelines running {:count=&gt;1, :running_pipelines=&gt;
  May 24 08:12:25 xyz.com logstash[19174]: [2021-05-24T08:12:25,363][INFO ][logstash.agent           ] Successfully started Logstash API endpoint {:port=
  May 24 15:38:50 xyz.com systemd[1]: logstash.service: Main process exited, code=killed, status=9/KILL
  May 24 15:38:50 xyz.com systemd[1]: logstash.service: Failed with result 'signal'.
  May 24 15:38:50 xyz.com systemd[1]: logstash.service: Service hold-off time over, scheduling restart.
  May 24 15:38:50 xyz.com systemd[1]: logstash.service: Scheduled restart job, restart counter is at 1.
  May 24 15:38:50 xyz.com systemd[1]: Stopped logstash.
  May 24 15:38:50 xyz.com systemd[1]: Started logstash.
  May 24 15:39:06 xyz.com logstash[25666]: Sending Logstash logs to /var/log/logstash which is now configured via log4j2.properties
  May 24 15:39:07 xyz.com logstash[25666]: 2021-05-24 15:39:07,101 main ERROR RollingFileManager (/var/log/logstash/logstash-plain.log) java.io.FileNotFo
  May 24 15:39:07 xyz.com logstash[25666]:         at java.io.FileOutputStream.open0(Native Method)
  May 24 15:39:07 xyz.com logstash[25666]:         at java.io.FileOutputStream.open(FileOutputStream.java:270)
  </code></pre>
  <p>Server OS: Ubuntu 18.04 ELK Version: 7.11.1</p>
  <p>Need your help to find out the exact reason.</p>