0502.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Setup GoAccess Web Log Analyzer on Linux</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Browser Based,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,Debian,Ubuntu,Linux,Web Analyzer,Open Source,GoAccess,Web Server Monitoring,Apache HTTPD,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Setup GoAccess Web Log Analyzer on Linux">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="10/27/2023 01:48:45 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Setup GoAccess Web Log Analyzer on Linux</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>What is GoAccess?</h2>
  26. <p><em>GoAccess is an open source real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser. It provides fast and valuable HTTP statistics for system administrators that require a visual server report on the fly.</em> - <a href="https://goaccess.io/" target="_blank">https://goaccess.io/</a></p>
  27. <h2>Installing GoAccess</h2>
  28. <ol>
  29. <li>Log into the Linux host</li>
  30. <li>Run the following commands in a terminal window:
  31. <div class="codeBlock"># update software respositories<br />
  32. sudo apt update<br />
  33. # install available software updates<br />
  34. sudo apt upgrade -y<br />
  35. # install prerequesities<br />
  36. sudo apt install gnupg2 -y<br />
  37. # add goaccess gpg key<br />
  38. wget -O - https://deb.goaccess.io/gnugpg.key | sudo apt-key add -<br />
  39. # add goaccess apt repository<br />
  40. echo &quot;deb http://deb.goaccess.io/ $(lsb_release -cs) main&quot; | sudo tee -a /etc/apt/sources.list.d/goaccess.list<br />
  41. # update software repositories again<br />
  42. sudo apt update<br />
  43. # install goaccess<br />
  44. sudo apt install goaccess -y<br />
  45. # install apache2<br />
  46. sudo apt install apache2 -y<br />
  47. # enable the real-time dashboard<br />
  48. sudo goaccess /var/log/apache2/access.log --log-format=COMBINED -a -o /var/www/html/monitor.html --real-time-html</div>
  49. </li>
  50. </ol>
  51. <h2>View GoAccess Web Dashboard</h2>
  52. <ol>
  53. <li>Open a web browser and navigate to http://DNSorIP/monitor.html</li>
  54. </ol> </div>
  55. </div>
  56. </body>
  57. </html>