Logstash - Nested fields

I think what i want to achieve is a Nested datatype.
Alright, now that I have realized my mistake, let me rephrase it. How do i create nested documents in Elasticssearch using Logstash?

I realize that you might need to use the Ruby filter. Any pointers or sample filter that I can refer? Not very familiar with Ruby.

Here are some links I found:

https://discuss.elastic.co/t/field-name-cannot-contain/33251/49