How to re-name field names in logstash

but that works only on the first part of the fields (that is there are 2 words in fields[event][category] ) how about 3 words in the fields ([client][geo][name]) and so on.. ?