allinurl / goaccess

GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.
https://goaccess.io
MIT License
18.12k stars 1.1k forks source link

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

Open gotnix opened 7 years ago

gotnix commented 7 years ago

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!

allinurl commented 7 years ago

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.

vincentqiu commented 5 years ago

goaccess still not support yet?

allinurl commented 5 years ago

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

guptarohit commented 5 years ago

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

allinurl commented 5 years ago

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

juliuswz commented 2 years ago

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