# Logstash dosen't support avro date type?

**URL:** <https://discuss.elastic.co/t/logstash-dosent-support-avro-date-type/243836>\
**Category:** Logstash\
**Created:** [August 5, 2020, 9:30am UTC](https://discuss.elastic.co/t/logstash-dosent-support-avro-date-type/243836 "2020-08-05T09:30:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hwi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hwi/32/46488_2.png) [@hwi](https://discuss.elastic.co/u/hwi)\
**Post date:** [August 5, 2020, 9:30am UTC](https://discuss.elastic.co/t/logstash-dosent-support-avro-date-type/243836/1 "2020-08-05T09:30:57Z")

</div>

I use logstash to stream data from kafka topic to elasticsearch index.  
(Input plugin kafka, output plugin elasticsearch)  
logstash version is 7.8

kafka topic schema include date type.  
example)

```auto
name startDate
type int
logicalType date

```

when I execute logstash pipeline, I got error.

```auto
An unexpected error occurred! {:error=>org.logstash.MissingConverterException: Missing Converter handling for full class name=org.jruby.ext.date.RubyDate, simple name=RubyDate, :backtrace=>["org.logstash.Valuefier.fallbackConvert(Valuefier.java:118)", "org.logstash.Valuefier.convert(Valuefier.java:96)", "org.logstash.ConvertedMap$1.visit(ConvertedMap.java:55)", "org.logstash.ConvertedMap$1.visit(ConvertedMap.java:49)", "org.jruby.RubyHash.visitLimited(RubyHash.java:698)",
...

```

I found code Valuefier.java in elasticsearch/logstash github.  
it seemed like logstash dosent' support Date type, RubyDate.

then what can I do?  
It fails at input stage before filter stage starts.  
so I can't control the field in logstash, which avro schema is date type.

Is there a solution?  
why dosen't logstash support to convert data to date type?

Please let me know if you have a similar problem or solution.  
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:** [September 2, 2020, 9:31am UTC](https://discuss.elastic.co/t/logstash-dosent-support-avro-date-type/243836/2 "2020-09-02T09:31:00Z")

</div>

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