# Is there any other way to store rejected records by elasticsearch?

**URL:** <https://discuss.elastic.co/t/is-there-any-other-way-to-store-rejected-records-by-elasticsearch/155985>\
**Category:** Logstash\
**Created:** [November 9, 2018, 6:22am UTC](https://discuss.elastic.co/t/is-there-any-other-way-to-store-rejected-records-by-elasticsearch/155985 "2018-11-09T06:22:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhagi007](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@Bhagi007](https://discuss.elastic.co/u/Bhagi007)\
**Post date:** [November 9, 2018, 6:22am UTC](https://discuss.elastic.co/t/is-there-any-other-way-to-store-rejected-records-by-elasticsearch/155985/1 "2018-11-09T06:22:59Z")

</div>

I tried dead letter queue plugin but it's not giving consistent output. and also i am facing the below issues.

Error:  
[2018-10-16T06:56:42,248][ERROR][logstash.pipeline] A plugin had an unrecoverable error. Will restart this plugin.  
Plugin: \<LogStash::Inputs::DeadLetterQueue path=\>"opt/logstash/logstash-5.5.0/data/dead\_letter\_queue", commit\_offsets=\>true, pipeline\_id=\>"main", id=\>"b49487305765c7531f10d6f3df975a1e2893844f-3", enable\_metric=\>true, codec=\>\<LogStash::Codecs::Plain id=\>"plain\_e6699c41-029b-4009-9775-1be9592d29e4", enable\_metric=\>true, charset=\>"UTF-8"\>\>

[2018-11-09T05:09:31,671][DEBUG][logstash.agent] Reading config file {:config\_file=\>"/etc/logstash/conf/logstash.conf"}  
[2018-11-09T05:09:31,671][DEBUG][logstash.agent] no configuration change for pipeline {:pipeline=\>"main"}  
[2018-11-09T05:09:31,926][DEBUG][logstash.instrument.periodicpoller.cgroup] Error, cannot retrieve cgroups information {:exception=\>"Errno::ENOENT", :message=\>"No such file or directory - /sys/fs/cgroup/cpuacct/ecs/9dc36c1f-a3a7-4265-b9b1-80dee87be626/e29b6c7b3eb67a8ea956384687baf66ebf3974f0476b5c74671684c5815362ac/cpuacct.usage"}  
[2018-11-09T05:09:32,512][ERROR][logstash.pipeline] A plugin had an unrecoverable error. Will restart this plugin.  
Plugin: \<LogStash::Inputs::DeadLetterQueue path=\>"opt/logstash/logstash-5.5.0/data/dead\_letter\_queue", commit\_offsets=\>true, pipeline\_id=\>"main", id=\>"7d2f7b47afb2aafe313f6f4a2411d56d61ba9e13-3", enable\_metric=\>true, codec=\>\<LogStash::Codecs::Plain id=\>"plain\_f2ba8af4-e928-4329-8754-8804a048136e", enable\_metric=\>true, charset=\>"UTF-8"\>\>  
Error:  
Exception: Java::JavaLang::NullPointerException  
Stack: java.nio.channels.FileChannel.open(java/nio/channels/FileChannel.java:286)  
java.nio.channels.FileChannel.open(java/nio/channels/FileChannel.java:335)  
org.logstash.common.io.RecordIOReader.(org/logstash/common/io/RecordIOReader.java:52)  
org.logstash.common.io.DeadLetterQueueReader.pollEntryBytes(org/logstash/common/io/DeadLetterQueueReader.java:124)  
org.logstash.common.io.DeadLetterQueueReader.pollEntry(org/logstash/common/io/DeadLetterQueueReader.java:95)  
org.logstash.input.DeadLetterQueueInputPlugin.run(org/logstash/input/DeadLetterQueueInputPlugin.java:82)  
java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)  
LogStash::Inputs::DeadLetterQueue.run(/opt/logstash/logstash-5.5.0/vendor/bundle/jruby/1.9/gems/logstash-input-dead\_letter\_queue-1.1.4/lib/logstash/inputs/dead\_letter\_queue.rb:60)  
LogStash::Inputs::DeadLetterQueue.run(/opt/logstash/logstash-5.5.0/vendor/bundle/jruby/1.9/gems/logstash-input-dead\_letter\_queue-1.1.4/lib/logstash/inputs/dead\_letter\_queue.rb:60)  
RUBY.inputworker(/opt/logstash/logstash-5.5.0/logstash-core/lib/logstash/pipeline.rb:456)  
RUBY.start\_input(/opt/logstash/logstash-5.5.0/logstash-core/lib/logstash/pipeline.rb:449)

---

<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:** [December 7, 2018, 6:23am UTC](https://discuss.elastic.co/t/is-there-any-other-way-to-store-rejected-records-by-elasticsearch/155985/2 "2018-12-07T06:23:01Z")

</div>

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