GoAccess: Difference between revisions
Jump to navigation
Jump to search
Created page with "=Introduction= This page is to capture the goaccess setup. =Configuration= Well it is not too completed <syntaxhighlight lang="bash"> apt install goacess </syntaxhighlight> To configure you should create a .goaccessrc as this allows you to use zcat more easily. I gave a sample - oo matron - to copilot and they gave me <syntaxhighlight lang="txt"> time-format %T date-format %d/%b/%Y log-format %h %^ %^ [%d:%t %^] "%r" %s %b "%R" "%u" </syntaxhighlight> Now we can do unp..." |
|||
Line 12: | Line 12: | ||
log-format %h %^ %^ [%d:%t %^] "%r" %s %b "%R" "%u" | log-format %h %^ %^ [%d:%t %^] "%r" %s %b "%R" "%u" | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=Usage= | |||
Now we can do unprompted | Now we can do unprompted | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="bash"> | ||
goaccess /var/logs/nginx/www.example.com.log | goaccess /var/logs/nginx/www.example.com.log | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Pressing o seems to expand the data and do dns resolution. Because we have already specified out formats we can use zcat | Pressing o seems to expand the data and do dns resolution. Because we have already specified out formats we can use zcat | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="bash"> | ||
zcat -f /var/log/nginx/www.example.com.log.2.gz | goaccess | zcat -f /var/log/nginx/www.example.com.log.2.gz | goaccess | ||
</syntaxhighlight> | </syntaxhighlight> | ||
That's it | That's it |
Revision as of 05:22, 6 May 2025
Introduction
This page is to capture the goaccess setup.
Configuration
Well it is not too completed
apt install goacess
To configure you should create a .goaccessrc as this allows you to use zcat more easily. I gave a sample - oo matron - to copilot and they gave me
time-format %T
date-format %d/%b/%Y
log-format %h %^ %^ [%d:%t %^] "%r" %s %b "%R" "%u"
Usage
Now we can do unprompted
goaccess /var/logs/nginx/www.example.com.log
Pressing o seems to expand the data and do dns resolution. Because we have already specified out formats we can use zcat
zcat -f /var/log/nginx/www.example.com.log.2.gz | goaccess
That's it