I am logging cookie headers, some cookies may have due date, some others not, the same is tru for other cookie parameters, I need to implement a centrilaized logging, so before sending those to logstash I want to transform syslog to json. How can I do that?
My suggestion is you format logs in apache as json previously.
As per requested here is an example I got on how to use LogFormart in httpd so your apache logs are logged directly like json: