print out the buffer on error and log the json
fix parsing for some rsyslog messages