aboutsummaryrefslogtreecommitdiff
path: root/articles/2025/Using-Goaccess-to-view-web-stats.html
blob: 8312fa52ad1e7c454d3157b408941a718eb94a9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!doctype html>
<html lang="EN">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="/style.css">
    <title>Using Goaccess to view web stats</title>
  </head>
  <body>
    <header>
      <h1>Bloggings</h1>
      <a href="/index.php">Back</a>
      
    </header>
    
<main>
<article>
<h2>Using Goaccess to view web stats</h2>
<h3>2025-04-03</h3>
<h4>Using Goaccess locally</h4>
<p>I have goaccess installed on my laptop to view the web stats on a vps</p>
<p>First install Goaccess on Arch Linux</p>
<code>sudo pacman -S goaccess</code>
<p>View the remote stats (adjust the path for your actual log location)</p>
<code>ssh USER@SERVER 'zcat -f /var/log/nginx/access.log*' | goaccess -a --log-format=COMBINED</code>
<p>I've added an alias in my .bashrc :</p>
<code>alias stats="ssh USER@SERVER 'zcat -f /var/log/nginx/access.log*' | goaccess -a --log-format=COMBINED"</code>
</article>
</main>
<footer>
<p>&nbsp;</p><p>§</p></footer>
</body></html>