goaccess icon indicating copy to clipboard operation
goaccess copied to clipboard

How to define custom log format name in `goaccess.conf' just like COMBINED, COMMON, W3C etc. ?

Open gotnix opened this issue 7 years ago • 6 comments

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!

gotnix avatar Dec 14 '16 10:12 gotnix

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.

allinurl avatar Dec 15 '16 02:12 allinurl

goaccess still not support yet?

vincentqiu avatar Dec 18 '18 03:12 vincentqiu

@vincentqiu not yet. Thanks for the reminder though :+1:

allinurl avatar Dec 18 '18 04:12 allinurl

@allinurl do we have any update on this? :upside_down_face:

guptarohit avatar Jul 22 '19 07:07 guptarohit

@guptarohit not yet... still working on priority issues for the next release. I'll bump a bit this on the list.

allinurl avatar Jul 22 '19 13:07 allinurl

@allinurl New year, new bump 😅 Happy new year by the way 🥳

juliuswz avatar Jan 02 '22 05:01 juliuswz