For debugging we have the debug function:
debug
http://docs.graylog.org/en/2.5/pages/pipelines/functions.html#debug