Possible to parse the message in Logstash and build indexes/fields from it

We have JSON messages that are getting forwarded to LogStash from filebeat, We would like to
parse the JSON messages and convert them into fields and add them as part of the message and would
also like to create index based on the fields in Elastic Search, is it possible?

Thanks,

Kasi

Yes, set codec => json for your beats input to have the payload deserialized as JSON.