aboutsummaryrefslogtreecommitdiff
path: root/content/blog/2023-06-08-goaccess-geoip.md
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2024-04-29 14:18:55 -0500
committerChristian Cleberg <hello@cleberg.net>2024-04-29 14:18:55 -0500
commitfdd80eadcc2f147d0198d94b7b908764778184a2 (patch)
treefbec9522ea9aa13e8105efc413d2498c3c5b4cd6 /content/blog/2023-06-08-goaccess-geoip.md
parentd6c80fdc1dea9ff242a4d3c7d3939d2727a8da56 (diff)
downloadcleberg.net-fdd80eadcc2f147d0198d94b7b908764778184a2.tar.gz
cleberg.net-fdd80eadcc2f147d0198d94b7b908764778184a2.tar.bz2
cleberg.net-fdd80eadcc2f147d0198d94b7b908764778184a2.zip
format line wrapping and fix escaped characters
Diffstat (limited to 'content/blog/2023-06-08-goaccess-geoip.md')
-rw-r--r--content/blog/2023-06-08-goaccess-geoip.md40
1 files changed, 19 insertions, 21 deletions
diff --git a/content/blog/2023-06-08-goaccess-geoip.md b/content/blog/2023-06-08-goaccess-geoip.md
index 1fc2008..5cce686 100644
--- a/content/blog/2023-06-08-goaccess-geoip.md
+++ b/content/blog/2023-06-08-goaccess-geoip.md
@@ -7,22 +7,21 @@ draft = false
# Overview
-[GoAccess](https://goaccess.io/) is an open source real-time web log
-analyzer and interactive viewer that runs in a terminal in \*nix systems
-or through your browser.
+[GoAccess](https://goaccess.io/) is an open source real-time web log analyzer
+and interactive viewer that runs in a terminal in *nix systems or through your
+browser.
# Installation
-To start, you\'ll need to install GoAccess for your OS. Here\'s an
-example for Debian-based distros:
+To start, you'll need to install GoAccess for your OS. Here's an example for
+Debian-based distros:
```sh
sudo apt install goaccess
```
-Next, find any number of the MaxMind GeoIP database files on GitHub or
-another file hosting website. We\'re going to use P3TERX\'s version in
-this example:
+Next, find any number of the MaxMind GeoIP database files on GitHub or another
+file hosting website. We're going to use P3TERX's version in this example:
```sh
wget https://github.com/P3TERX/GeoLite.mmdb/raw/download/GeoLite2-City.mmdb
@@ -32,16 +31,15 @@ Be sure to save this file in an easy to remember location!
# Usage
-In order to utilize the full capabilities of GoAccess and MMDB, start
-with the command template below and customize as necessary. This will
-export an HTML view of the GoAccess dashboard, showing all relevant
-information related to that site\'s access log. You can also omit the
-`-o output.html` parameter if you prefer to view the data
-within the CLI instead of creating an HTML file.
+In order to utilize the full capabilities of GoAccess and MMDB, start with the
+command template below and customize as necessary. This will export an HTML view
+of the GoAccess dashboard, showing all relevant information related to that
+site's access log. You can also omit the `-o output.html` parameter if you
+prefer to view the data within the CLI instead of creating an HTML file.
-With the addition of the GeoIP Database parameter, section
-`16 - Geo Location` will be added with the various countries
-that are associated with the collected IP addresses.
+With the addition of the GeoIP Database parameter, section `16 - Geo Location`
+will be added with the various countries that are associated with the collected
+IP addresses.
```sh
zcat /var/log/nginx/example.access.log.*.gz | goaccess \
@@ -60,11 +58,11 @@ See below for an example of the HTML output:
![GoAccess
HTML](https://img.cleberg.net/blog/20230608-goaccess/goaccess-dashboard.png)
-You can also see the GeoIP card created by the integration of the
-MaxMind database information.
+You can also see the GeoIP card created by the integration of the MaxMind
+database information.
![GoAccess
GeoIP](https://img.cleberg.net/blog/20230608-goaccess/goaccess-geoip.png)
-That\'s all there is to it! Informational data is provided in an
-organized fashion with minimal effort.
+That's all there is to it! Informational data is provided in an organized
+fashion with minimal effort.