Logstash output to file, from JSON field not exist / field is empty, about output format

Hi Richard,

Have you considered checking if the field exists in the filter section and then taking appropriate action on it?

So, you can add a value to the field if it does not exist.