If you want to use rsyslog to reformat syslog data in to JSON format before sending off to an output, you will need to use a template. The template that comes up the most for this purpose is this one:
If you want to use rsyslog to reformat syslog data in to JSON format before sending off to an output, you will need to use a template. The template that comes up the most for this purpose is this one: