# Getting Error on logstash log file

**URL:** https://discuss.elastic.co/t/getting-error-on-logstash-log-file/270482
**Category:** Logstash
**Created:** [April 18, 2021, 5:58am UTC](https://discuss.elastic.co/t/getting-error-on-logstash-log-file/270482 "2021-04-18T05:58:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![varun1992](https://avatars.discourse-cdn.com/v4/letter/v/3da27b/32.png) [@varun1992](https://discuss.elastic.co/u/varun1992)
#### Post date: [April 18, 2021, 5:58am UTC](https://discuss.elastic.co/t/getting-error-on-logstash-log-file/270482/1 "2021-04-18T05:58:43Z")

</div>

```
[2021-04-17T21:44:28,123][ERROR][logstash.javapipeline] A plugin had an unrecoverable error. Will restart this plugin.
      Pipeline_id:group_index
      Plugin: <LogStash::Inputs::File start_position=>"beginning", path=>["/DataFolder/Group_index.csv"], add_field=>{"[event][type]"=>"Device Group", "company_name"=>"school_ep"}, sincedb_clean_after=>259.2, id=>"bb113701f9222fa297ea12658392e713937ec4135bb940fba04854f16fad90ef", enable_metric=>true, codec=><LogStash::Codecs::Plain id=>"plain_a3bafbc0-fc17-4583-9ea1-e0ea725cff1c", enable_metric=>true, charset=>"UTF-8">, stat_interval=>1.0, discover_interval=>15, sincedb_write_interval=>15.0, delimiter=>"\n", close_older=>3600.0, mode=>"tail", file_completed_action=>"delete", file_chunk_size=>32768, file_chunk_count=>140737488355327, file_sort_by=>"last_modified", file_sort_direction=>"asc", exit_after_read=>false, check_archive_validity=>false>
      Error: The handle is invalid
      Exception: IOError
      Stack: org/jruby/RubyIO.java:1234:in `sysopen'
    org/jruby/RubyIO.java:1214:in `sysopen'
    C:/logstash/logstash-7.11.2/vendor/bundle/jruby/2.5.0/gems/logstash-input-file-4.2.3/lib/filewatch/sincedb_collection.rb:235:in `non_atomic_write'
    org/jruby/RubyMethod.java:119:in `call'
    C:/logstash/logstash-7.11.2/vendor/bundle/jruby/2.5.0/gems/logstash-input-file-4.2.3/lib/filewatch/sincedb_collection.rb:212:in `sincedb_write'
    C:/logstash/logstash-7.11.2/vendor/bundle/jruby/2.5.0/gems/logstash-input-file-4.2.3/lib/filewatch/sincedb_collection.rb:185:in `flush_at_interval'
    C:/logstash/logstash-7.11.2/vendor/bundle/jruby/2.5.0/gems/logstash-input-file-4.2.3/lib/filewatch/watch.rb:57:in `subscribe'
    C:/logstash/logstash-7.11.2/vendor/bundle/jruby/2.5.0/gems/logstash-input-file-4.2.3/lib/filewatch/observing_tail.rb:12:in `subscribe'
    C:/logstash/logstash-7.11.2/vendor/bundle/jruby/2.5.0/gems/logstash-input-file-4.2.3/lib/logstash/inputs/file.rb:364:in `run'
    C:/logstash/logstash-7.11.2/logstash-core/lib/logstash/java_pipeline.rb:405:in `inputworker'
    C:/logstash/logstash-7.11.2/logstash-core/lib/logstash/java_pipeline.rb:396:in `block in start_input'

```

> what is this error means. i am getting this multiple times
> 
> i also get another error as below

```
[2021-04-17T11:18:48,116][WARN][org.logstash.instrument.metrics.gauge.LazyDelegatingGauge] A gauge metric of an unknown type (org.jruby.specialized.RubyArrayOneObject) has been created for key: send_to. This may result in invalid serialization. It is recommended to log an issue to the responsible developer/development team.
[2021-04-17T11:18:48,350][WARN][org.logstash.instrument.metrics.gauge.LazyDelegatingGauge] A gauge metric of an unknown type (org.jruby.specialized.RubyArrayOneObject) has been created for key: send_to. This may result in invalid serialization. It is recommended to log an issue to the responsible developer/development team.

```

---

<div class="post-metadata">

### Author: ![varun1992](https://avatars.discourse-cdn.com/v4/letter/v/3da27b/32.png) [@varun1992](https://discuss.elastic.co/u/varun1992)
#### Post date: [April 20, 2021, 5:30am UTC](https://discuss.elastic.co/t/getting-error-on-logstash-log-file/270482/2 "2021-04-20T05:30:01Z")

</div>

any solution

---

<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: [May 18, 2021, 5:30am UTC](https://discuss.elastic.co/t/getting-error-on-logstash-log-file/270482/3 "2021-05-18T05:30:39Z")

</div>

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