-
Notifications
You must be signed in to change notification settings - Fork 43
/
goaccess.conf
182 lines (149 loc) · 4.67 KB
/
goaccess.conf
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
#####################
# Time Format Options
#####################
time-format %H:%M:%S
#####################
# Date Format Options
#####################
date-format %Y-%m-%d
####################
# Log Format Options
####################
# # Performance Log
#log-format client_ip=%h - time_iso8601="%dT%t-%^+%^" protocol="%H" method=%m status=%s request="%^://%v:%^%U" request_length=%^ body_bytes_sent=%b server_name="%^" http_referer="%R" http_user_agent="%u" request_time="%T" %^
# # Main JSON Log
log-format { "time_iso8601": "%dT%t-%^+%^", "client_ip": "%h", "server_name": "%^", "request": "%^://%v:%^%U", "request_method": "%m", "request_protocol": "%H", "request_length": "%^", "response_status": "%s", "body_bytes_sent": "%b", "request_time": "%T", "http_referer": "%R", "http_user_agent": "%u"%^ }
############
# UI Options
############
# Set default HTML preferences.
#
html-prefs {"theme": "darkBlue"}
# Set HTML report page title and header.
#
html-report-title Server Statistics 🚀
################
# Server Options
################
# Specify IP address to bind server to.
#
addr 0.0.0.0
# Run GoAccess as daemon (if --real-time-html enabled).
#
daemonize false
# The port to which the connection is being attempted to connect.
# By default GoAccess' WebSocket server listens on port 7890
# See man page or http://gwsocket.io for details.
#
port 7890
# Write the PID to a file when used along the daemonize option.
#
pid-file /var/run/goaccess.pid
# Enable real-time HTML output.
#
real-time-html true
##############
# File Options
##############
# Specify the path to the input log file. If set, it will take
# priority over -f from the command line.
#
log-file /var/log/nginx/app.main.access.log
#log-file /var/log/nginx/xyz.main.access.log
# Do not load the global configuration file.
#
no-global-config true
###############
# Parse Options
###############
# Exclude an IPv4 or IPv6 from being counted.
# Ranges can be included as well using a dash in between
# the IPs (start-end).
#
#exclude-ip 127.0.0.1
#exclude-ip 192.168.0.1-192.168.0.100
#exclude-ip ::1
#exclude-ip 0:0:0:0:0:ffff:808:804-0:0:0:0:0:ffff:808:808
# Write output to stdout given one of the following files and the
# corresponding extension for the output format:
#
# /path/file.csv - Comma-separated values (CSV)
# /path/file.json - JSON (JavaScript Object Notation)
# /path/file.html - HTML
#
output /var/www/goaccess/report.html
# Ignore request's query string.
# i.e., www.google.com/page.htm?query => www.google.com/page.htm
#
# Note: Removing the query string can greatly decrease memory
# consumption, especially on timestamped requests.
#
no-query-string false
# Include static files that contain a query string in the static files
# panel.
# e.g., /fonts/fontawesome-webfont.woff?v=4.0.3
#
all-static-files false
# Ignore crawlers from being counted.
# This will ignore robots listed under browsers.c
# Note that it will count them towards the total
# number of requests, but excluded from any of the panels.
#
ignore-crawlers false
# Ignore parsing and displaying the given panel.
#
#ignore-panel VISITORS
#ignore-panel REQUESTS
ignore-panel REQUESTS_STATIC
#ignore-panel NOT_FOUND
#ignore-panel HOSTS
#ignore-panel OS
#ignore-panel BROWSERS
#ignore-panel VISIT_TIMES
#ignore-panel VIRTUAL_HOSTS
#ignore-panel REFERRERS
#ignore-panel REFERRING_SITES
ignore-panel KEYPHRASES
#ignore-panel STATUS_CODES
#ignore-panel REMOTE_USER
#ignore-panel CACHE_STATUS
#ignore-panel GEO_LOCATION
# Ignore referers from being counted.
# This supports wild cards. For instance,
# '*' matches 0 or more characters (including spaces)
# '?' matches exactly one character
#
#ignore-referer *.domain.com
#ignore-referer ww?.domain.*
# Ignore parsing and displaying one or multiple status code(s)
#
#ignore-status 400
#ignore-status 502
# Keep the last specified number of days in storage. This will recycle the
# storage tables. e.g., keep & show only the last 7 days.
#
keep-last 7
# Display real OS names. e.g, Windows XP, Snow Leopard.
#
real-os true
########################################
# GeoIP Options
# Only if configured with --enable-geoip
########################################
# === GeoIP2
# For GeoIP2 databases, you can use DB-IP Lite databases.
# DB-IP is licensed under a Creative Commons Attribution 4.0 International License.
# https://db-ip.com/db/lite.php
# Or you can download them from MaxMind
# https://dev.maxmind.com/geoip/geoip2/geolite2/
# For GeoIP2 City database:
# Download the GeoLite2-City.mmdb.gz
# gunzip GeoLite2-City.mmdb.gz
#
# For GeoIP2 Country database:
# Download the GeoLite2-Country.mmdb.gz
# gunzip GeoLite2-Country.mmdb.gz
#
# GeoLite2-Country.mmdb
# GeoLite2-City.mmdb
#geoip-database /etc/goaccess/GeoIP/GeoLite2-City.mmdb