How to handle fields with mixed field types in logstash?

See this thread and the thread it links to.