Can check data type before output?

I'm using Logstash 5.0 and migrate data from ES 1.7 to ES 5.0 but I have a problem about conflicted data type on the same filed name but different type.

How to check data type of each field?

Because I cannot change some format of fields (object and string that cannot use instead of each other) so I have to rename it by adding postfix or prefix in field name.

Thanks,
Hiko

You'll have to use a ruby filter for this, and then standard Ruby constructs for checking the type of objects will apply.

Thank for your suggestion.

I'm looking on this page https://www.elastic.co/guide/en/logstash/current/plugins-filters-ruby.html but I cannot find which's one can be applied for my case.

I'm not familiar with ruby so I need your advice more.

Thanks again.

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