Replies: 1 comment 1 reply
-
This should do it:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently using the Bitnami stack and trying to configure GoAccess to parse my Apache logs. Below is my current setup, but the IP addresses are not being displayed correctly.
Apache Configuration (/opt/bitnami/apache/conf/httpd.conf)
--Log Format for Cloudflare IPs (Country Code, User-Agent, and Status)
LogFormat "%a %t "%r" %>s [%{CF-IPCountry}i]" cloudflare_minimal
CustomLog "logs/access_log" cloudflare_minimal
--Log Sample (/opt/bitnami/apache/logs/access_log)
999.999.999.999 [06/Jan/2025:14:42:06 +0800] "GET /tag/dfdfdf HTTP/1.1" 404 [US]
999.999.999.999 [06/Jan/2025:14:42:19 +0800] "GET /json/obje/analytics HTTP/1.1" 200 [JP]
999.999.999.999 [06/Jan/2025:14:42:19 +0800] "POST /admin/ajax.php HTTP/1.1" 200 [CN]
--Commands I Tried (GoAccess Version 1.7, via SSH)
goaccess /opt/bitnami/apache/logs/access_log
goaccess /opt/bitnami/apache/logs/access_log --log-format='%h [%d:%t %^] "%m %U %H" %s [%^]' --date-format=%d/%b/%Y --time-format=%T
goaccess /opt/bitnami/apache/logs/access_log --log-format='%h[%d:%t %^] "%r" %s [%^]' --date-format=%d/%b/%Y --time-format=%T
--Output Sample
Hits h% Vis. v% Data
50 100.00% 2 100.00% 06/Jan/2025 ||||||||||||||||||||
What command or log format should I use to display the correct IP addresses? Any help is greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions