Send the Ruby Exception message along with the _rubyException tag

I have ruby filter processing and for some inputs, I do have ruby-exceptions and they are successfully propogated to elastic search with the tag. (expected). However I do not know why this exceptions are caused i.e the stacktrace.

May I know if there is a way to send the exception message (and stack trace) to that input such that I can trace back and see what went wrong?