How to define specific mapping in logstash to parse data in certain format

I need to parse my data like root:[group:[instance:[hourly:{},monthly:{},daily:{}]]]
how to define mappings to get data like this?

You'd typically use a grok filter to parse strings like that.

When you say mappings, are you talking about mappings in the Elasticsearch sense?