I noticed that I can use json converter in the log-format directive.
This seems to work as expected →
However how this can be used for e.g. cookies ?
Following doesn’t work for sure:
Parsing [/etc/haproxy/haproxy.cfg:88]: failed to parse log-format : failed to parse sample expression <CC,json(ascii)> : unknown fetch method 'CC'.
Per documentation a converter is a function that always follows a fetch.
Based on this I don’t see a way how to do it but I would like to ask:
Can be json converter used for any log flag ? or it isn’t necessary ?