Fix/refactor file output

This will need reviews, It used a similar behavior on failure than the grok filter.

`log_path` is misleading name..can we make it `file_path` or `file_output_path`