Logstash dynamic fields

Can I use translate filter inside ruby filter ?? As I have to iterate over msg_string which can be done in ruby filter