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..." |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
=Introduction= | =Introduction= | ||
This page is to capture the goaccess setup. | This page is to capture the goaccess setup.<br> | ||
[[File:Goaccess 1.png|600px]] | |||
=Configuration= | =Configuration= | ||
Well it is not too completed | Well it is not too completed | ||
Line 12: | Line 14: | ||
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 |
Latest revision as of 05:24, 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