Switch log to json format (logstash-compatibile)

Hi,

is there a way to switch logging from regular string to logstash compatibile (json) ?
We use grafana on k8s with ELK and logs in current form are unusable.

Cheers