<div dir="ltr">Hi,<div><br></div><div> I am using the 'format-json' as my below snip.</div><div><br></div><div><div>template t_raw2json {</div><div> template("$(format-json --scope selected_macros \</div><div> --exclude TAGS \</div><div> --exclude DATE \</div><div> --exclude PRIORITY \</div><div> --exclude FACILITY \</div><div> --exclude PROGRAM</div><div> )\n");</div><div>};</div></div><div><br></div><div><br></div><div>but, the problem is because sometimes I receive a jSON packet as { "Key": "value" } or {"key": "value}".... this has been a problem to my filter.<br></div><div><br></div><div>e.g:</div><div><br></div><div><div>destination d_nginx_modsec_log {</div><div> file("/var/logs/myapp//${j.key:-invalid_key}.log" template(t_raw2json) );</div><div>};</div><div><br></div><div>Question: is it possible to normalize the jSON keys to lowercase? or someone has other approaches?</div><div><div class="gmail_signature"><div dir="ltr">--<div>Jorge Pereira</div></div></div></div>
</div></div>