How to send grok field into ruby

This doesn't really make much sense as it will just copy the message field into a selectedMessage field. Please explain what you are trying to do with your data, not how.

Why do you need to use a ruby filter? What do you want to do with it?