goaccess
goaccess copied to clipboard
How to define custom log format name in `goaccess.conf' just like COMBINED, COMMON, W3C etc. ?
Hi!
For example: First, I set myself log format name in `goaccess.conf',
log-format NGINX %h %^ %e [%d:%t %^] "%r" %s %b %T "%R" "%u" "%^" %^ %^ %^
log-format HAPROXY "%r" %s %b %T "%R" "%u" "%h"
Then, I could use it in cli like this:
goaccess --log-format=NGINX -f nginx-access.log
or
goaccess --log-format=HAPROXY -f haproxy-access.log
If GoAccess already have a similar way to do this, please tell me, thanks a lot!
There's no way right now to define your own format, however, I can see this being useful. I'll take a look at it. Please keep this open.
goaccess still not support yet?
@vincentqiu not yet. Thanks for the reminder though :+1:
@allinurl do we have any update on this? :upside_down_face:
@guptarohit not yet... still working on priority issues for the next release. I'll bump a bit this on the list.
@allinurl New year, new bump 😅 Happy new year by the way 🥳