Write data that have failed in Logstash filter transforms to file

This post help you?