├── README.md ├── docker-compose.yml └── goaccess.conf /README.md: -------------------------------------------------------------------------------- 1 | # nginx-proxy-manager-goaccess 2 | 3 | run "docker-compose up -d" 4 | 5 | stop the goaccess container 6 | 7 | **Edit the following file: ./goaccess/storage/goaccess.conf** *(I've included my goaccess configuration)* 8 | 9 | verify: 10 | - real-time-html true 11 | 12 | comment out: 13 | - log-format COMBINED 14 | 15 | add: 16 | - log_format [%d:%t %^] %s - %m %^ %v "%U" [Client %h] [Length %b] [Gzip %^] "%u" "%R" 17 | - time-format %T 18 | - date-format %d/%b/%Y 19 | 20 | update: 21 | - log-file /opt/log/default.log 22 | 23 | start the goaccess container 24 | 25 | visit goaccess at: http://[ip]:7889 26 | 27 | 28 | > props to ( and me too :P ): https://github.com/hectorm/docker-goaccess and https://forums.unraid.net/topic/103977-view-nginx-proxy-manager-access-logs-in-a-beautiful-dashboard-with-goaccess/ 29 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: "3" 2 | 3 | networks: 4 | nginx_proxy_manager: 5 | ipam: 6 | config: 7 | - subnet: 172.20.0.0/24 8 | 9 | services: 10 | app: 11 | image: 'jc21/nginx-proxy-manager:latest' 12 | container_name: nginx_proxy 13 | restart: always 14 | ports: 15 | - '80:80' 16 | - '443:443' 17 | # Admin Web Port: 18 | - '81:81' 19 | environment: 20 | DB_SQLITE_FILE: "/data/database.sqlite" 21 | # Uncomment this if IPv6 is not enabled on your host 22 | DISABLE_IPV6: 'true' 23 | volumes: 24 | - ./nginx_proxy/data:/data 25 | - ./nginx_proxy/letsencrypt:/etc/letsencrypt 26 | networks: 27 | nginx_proxy_manager: 28 | ipv4_address: 172.20.0.2 29 | goaccess: 30 | image: gregyankovoy/goaccess 31 | container_name: goaccess 32 | restart: always 33 | ports: 34 | - '7889:7889' 35 | volumes: 36 | - ./nginx_proxy/data/logs:/opt/log 37 | - ./goaccess/storage:/config 38 | -------------------------------------------------------------------------------- /goaccess.conf: -------------------------------------------------------------------------------- 1 | ###################################### 2 | # Time Format Options (required) 3 | ###################################### 4 | # 5 | # The hour (24-hour clock) [00,23]; leading zeros are permitted but not required. 6 | # The minute [00,59]; leading zeros are permitted but not required. 7 | # The seconds [00,60]; leading zeros are permitted but not required. 8 | # See `man strftime` for more details 9 | # 10 | # The following time format works with any of the 11 | # Apache/NGINX's log formats below. 12 | # 13 | #time-format %H:%M:%S 14 | # 15 | # Google Cloud Storage or 16 | # The time in microseconds since the Unix epoch. 17 | # 18 | #time-format %f 19 | 20 | # Squid native log format 21 | # 22 | #time-format %s 23 | 24 | time-format %T 25 | 26 | ###################################### 27 | # Date Format Options (required) 28 | ###################################### 29 | # 30 | # The date-format variable followed by a space, specifies 31 | # the log format date containing any combination of regular 32 | # characters and special format specifiers. They all begin with a 33 | # percentage (%) sign. See `man strftime` 34 | # 35 | # The following date format works with any of the 36 | # Apache/NGINX's log formats below. 37 | # 38 | #date-format %d/%b/%Y 39 | # 40 | # AWS | Amazon CloudFront (Download Distribution) 41 | # AWS | Elastic Load Balancing 42 | # W3C (IIS) 43 | # 44 | #date-format %Y-%m-%d 45 | # 46 | # Google Cloud Storage or 47 | # The time in microseconds since the Unix epoch. 48 | # 49 | #date-format %f 50 | 51 | # Squid native log format 52 | # 53 | #date-format %s 54 | 55 | date-format %d/%b/%Y 56 | 57 | ###################################### 58 | # Log Format Options (required) 59 | ###################################### 60 | # 61 | # The log-format variable followed by a space or \t for 62 | # tab-delimited, specifies the log format string. 63 | # 64 | # NOTE: If the time/date is a timestamp in seconds or microseconds 65 | # %x must be used instead of %d & %t to represent the date & time. 66 | 67 | # NCSA Combined Log Format 68 | #log-format %h %^[%d:%t %^] "%r" %s %b "%R" "%u" 69 | 70 | # NCSA Combined Log Format with Virtual Host 71 | #log-format %v:%^ %h %^[%d:%t %^] "%r" %s %b "%R" "%u" 72 | 73 | # Common Log Format (CLF) 74 | #log-format %h %^[%d:%t %^] "%r" %s %b 75 | 76 | # Common Log Format (CLF) with Virtual Host 77 | #log-format %v:%^ %h %^[%d:%t %^] "%r" %s %b 78 | 79 | # W3C 80 | #log-format %d %t %h %^ %^ %^ %^ %r %^ %s %b %^ %^ %u %R 81 | 82 | # Squid native log format 83 | #log-format %^ %^ %^ %v %^: %x.%^ %~%L %h %^/%s %b %m %U 84 | 85 | # AWS | Amazon CloudFront (Download Distribution) 86 | #log-format %d\t%t\t%^\t%b\t%h\t%m\t%^\t%r\t%s\t%R\t%u\t%^ 87 | 88 | # Google Cloud Storage 89 | #log-format "%x","%h",%^,%^,"%m","%U","%s",%^,"%b","%D",%^,"%R","%u" 90 | 91 | # AWS | Elastic Load Balancing 92 | #log-format %dT%t.%^ %^ %h:%^ %^ %T %^ %^ %^ %s %^ %b "%r" "%u" 93 | 94 | # AWSS3 | Amazon Simple Storage Service (S3) 95 | #log-format %^[%d:%t %^] %h %^"%r" %s %^ %b %^ %L %^ "%R" "%u" 96 | 97 | # Virtualmin Log Format with Virtual Host 98 | #log-format %h %^ %v %^[%d:%t %^] "%r" %s %b "%R" "%u" 99 | 100 | # Kubernetes Nginx Ingress Log Format 101 | #log-format %^ %^ [%h] %^ %^ [%d:%t %^] "%r" %s %b "%R" "%u" %^ %^ [%v] %^:%^ %^ %T %^ %^ 102 | 103 | # In addition to specifying the raw log/date/time formats, for 104 | # simplicity, any of the following predefined log format names can be 105 | # supplied to the log/date/time-format variables. GoAccess can also 106 | # handle one predefined name in one variable and another predefined 107 | # name in another variable. 108 | # 109 | #log-format COMBINED 110 | #log-format VCOMBINED 111 | #log-format COMMON 112 | #log-format VCOMMON 113 | #log-format W3C 114 | #log-format SQUID 115 | #log-format CLOUDFRONT 116 | #log-format CLOUDSTORAGE 117 | #log-format AWSELB 118 | #log-format AWSS3 119 | 120 | log_format [%d:%t %^] %s - %m %^ %v "%U" [Client %h] [Length %b] [Gzip %^] "%u" "%R" 121 | 122 | ###################################### 123 | # UI Options 124 | ###################################### 125 | 126 | # Choose among color schemes 127 | # 1 : Monochrome 128 | # 2 : Green 129 | # 3 : Monokai (if 256-colors supported) 130 | # 131 | #color-scheme 3 132 | 133 | # Prompt log/date configuration window on program start. 134 | # 135 | config-dialog false 136 | 137 | # Color highlight active panel. 138 | # 139 | hl-header true 140 | 141 | # Specify a custom CSS file in the HTML report. 142 | # 143 | #html-custom-css /path/file.css 144 | 145 | # Specify a custom JS file in the HTML report. 146 | # 147 | #html-custom-js /path/file.js 148 | 149 | # Set default HTML preferences. 150 | # 151 | # NOTE: A valid JSON object is required. 152 | # DO NOT USE A MULTILINE JSON OBJECT. 153 | # The parser will only parse the value next to `html-prefs` (single line) 154 | # It allows the ability to customize each panel plot. See example below. 155 | # 156 | #html-prefs {"theme":"bright","perPage":5,"layout":"horizontal","showTables":true,"visitors":{"plot":{"chartType":"bar"}}} 157 | 158 | # Set HTML report page title and header. 159 | # 160 | #html-report-title My Awesome Web Stats 161 | 162 | # Format JSON output using tabs and newlines. 163 | # 164 | json-pretty-print false 165 | 166 | # Turn off colored output. This is the default output on 167 | # terminals that do not support colors. 168 | # true : for no color output 169 | # false : use color-scheme 170 | # 171 | no-color false 172 | 173 | # Don't write column names in the terminal output. By default, it displays 174 | # column names for each available metric in every panel. 175 | # 176 | no-column-names false 177 | 178 | # Disable summary metrics on the CSV output. 179 | # 180 | no-csv-summary false 181 | 182 | # Disable progress metrics. 183 | # 184 | no-progress false 185 | 186 | # Disable scrolling through panels on TAB. 187 | # 188 | no-tab-scroll false 189 | 190 | # Disable progress metrics and parsing spinner. 191 | # 192 | #no-parsing-spinner true 193 | 194 | # Do not show the last updated field displayed in the HTML generated report. 195 | # 196 | #no-html-last-updated true 197 | 198 | # Enable mouse support on main dashboard. 199 | # 200 | with-mouse false 201 | 202 | # Maximum number of items to show per panel. 203 | # Note: Only the CSV and JSON outputs allow a maximum greater than the 204 | # default value of 366. 205 | # 206 | #max-items 366 207 | 208 | # Custom colors for the terminal output 209 | # Tailor GoAccess to suit your own tastes. 210 | # 211 | # Color Syntax: 212 | # DEFINITION space/tab colorFG#:colorBG# [[attributes,] PANEL] 213 | # 214 | # FG# = foreground color number [-1...255] (-1 = default terminal color) 215 | # BG# = background color number [-1...255] (-1 = default terminal color) 216 | # 217 | # Optionally: 218 | # 219 | # It is possible to apply color attributes, such as: 220 | # bold,underline,normal,reverse,blink. 221 | # Multiple attributes are comma separated 222 | # 223 | # If desired, it is possible to apply custom colors per panel, that is, a 224 | # metric in the REQUESTS panel can be of color A, while the same metric in the 225 | # BROWSERS panel can be of color B. 226 | # 227 | # The following is a 256 color scheme (hybrid palette) 228 | # 229 | #color COLOR_MTRC_HITS color110:color-1 230 | #color COLOR_MTRC_VISITORS color173:color-1 231 | #color COLOR_MTRC_DATA color221:color-1 232 | #color COLOR_MTRC_BW color167:color-1 233 | #color COLOR_MTRC_AVGTS color143:color-1 234 | #color COLOR_MTRC_CUMTS color247:color-1 235 | #color COLOR_MTRC_MAXTS color186:color-1 236 | #color COLOR_MTRC_PROT color109:color-1 237 | #color COLOR_MTRC_MTHD color139:color-1 238 | #color COLOR_MTRC_HITS_PERC color186:color-1 239 | #color COLOR_MTRC_HITS_PERC_MAX color139:color-1 240 | #color COLOR_MTRC_HITS_PERC_MAX color139:color-1 VISITORS 241 | #color COLOR_MTRC_HITS_PERC_MAX color139:color-1 OS 242 | #color COLOR_MTRC_HITS_PERC_MAX color139:color-1 BROWSERS 243 | #color COLOR_MTRC_HITS_PERC_MAX color139:color-1 VISIT_TIMES 244 | #color COLOR_MTRC_VISITORS_PERC color186:color-1 245 | #color COLOR_MTRC_VISITORS_PERC_MAX color139:color-1 246 | #color COLOR_PANEL_COLS color243:color-1 247 | #color COLOR_BARS color250:color-1 248 | #color COLOR_ERROR color231:color167 249 | #color COLOR_SELECTED color7:color167 250 | #color COLOR_PANEL_ACTIVE color7:color237 251 | #color COLOR_PANEL_HEADER color250:color235 252 | #color COLOR_PANEL_DESC color242:color-1 253 | #color COLOR_OVERALL_LBLS color243:color-1 254 | #color COLOR_OVERALL_VALS color167:color-1 255 | #color COLOR_OVERALL_PATH color186:color-1 256 | #color COLOR_ACTIVE_LABEL color139:color235 bold underline 257 | #color COLOR_BG color250:color-1 258 | #color COLOR_DEFAULT color243:color-1 259 | #color COLOR_PROGRESS color7:color110 260 | 261 | ###################################### 262 | # Server Options 263 | ###################################### 264 | 265 | # Specify IP address to bind server to. 266 | # 267 | #addr 0.0.0.0 268 | 269 | # Run GoAccess as daemon (if --real-time-html enabled). 270 | # 271 | #daemonize false 272 | 273 | # Ensure clients send the specified origin header upon the WebSocket 274 | # handshake. 275 | # 276 | #origin http://example.org 277 | 278 | # The port to which the connection is being attempted to connect. 279 | # By default GoAccess' WebSocket server listens on port 7890 280 | # See man page or http://gwsocket.io for details. 281 | # 282 | #port 7890 283 | 284 | # Write the PID to a file when used along the daemonize option. 285 | # 286 | #pid-file /var/run/goaccess.pid 287 | 288 | # Enable real-time HTML output. 289 | # 290 | real-time-html true 291 | 292 | # Path to TLS/SSL certificate. 293 | # Note that ssl-cert and ssl-key need to be used to enable TLS/SSL. 294 | # 295 | #ssl-cert /path/ssl/domain.crt 296 | 297 | # Path to TLS/SSL private key. 298 | # Note that ssl-cert and ssl-key need to be used to enable TLS/SSL. 299 | # 300 | #ssl-key /path/ssl/domain.key 301 | 302 | # URL to which the WebSocket server responds. This is the URL supplied 303 | # to the WebSocket constructor on the client side. 304 | # 305 | # Optionally, it is possible to specify the WebSocket URI scheme, such as ws:// 306 | # or wss:// for unencrypted and encrypted connections. 307 | # e.g., ws-url wss://goaccess.io 308 | # 309 | # If GoAccess is running behind a proxy, you could set the client side 310 | # to connect to a different port by specifying the host followed by a 311 | # colon and the port. 312 | # e.g., ws-url goaccess.io:9999 313 | # 314 | # By default, it will attempt to connect to localhost. If GoAccess is 315 | # running on a remote server, the host of the remote server should be 316 | # specified here. Also, make sure it is a valid host and NOT an http 317 | # address. 318 | # 319 | #ws-url goaccess.io 320 | 321 | # Path to read named pipe (FIFO). 322 | # 323 | #fifo-in /tmp/wspipein.fifo 324 | 325 | # Path to write named pipe (FIFO). 326 | # 327 | #fifo-in /tmp/wspipeout.fifo 328 | 329 | ###################################### 330 | # File Options 331 | ###################################### 332 | 333 | # Specify the path to the input log file. If set, it will take 334 | # priority over -f from the command line. 335 | # 336 | log-file /opt/log/default.log 337 | 338 | # Send all debug messages to the specified file. 339 | # 340 | #debug-file debug.log 341 | 342 | # Specify a custom configuration file to use. If set, it will take 343 | # priority over the global configuration file (if any). 344 | # 345 | #config-file 346 | 347 | # Log invalid requests to the specified file. 348 | # 349 | #invalid-requests 350 | 351 | # Do not load the global configuration file. 352 | # 353 | #no-global-config false 354 | 355 | ###################################### 356 | # Parse Options 357 | ###################################### 358 | 359 | # Enable a list of user-agents by host. For faster parsing, do not 360 | # enable this flag. 361 | # 362 | agent-list false 363 | 364 | # Enable IP resolver on HTML|JSON|CSV output. 365 | # 366 | with-output-resolver false 367 | 368 | # Exclude an IPv4 or IPv6 from being counted. 369 | # Ranges can be included as well using a dash in between 370 | # the IPs (start-end). 371 | # 372 | #exclude-ip 127.0.0.1 373 | #exclude-ip 192.168.0.1-192.168.0.100 374 | #exclude-ip ::1 375 | #exclude-ip 0:0:0:0:0:ffff:808:804-0:0:0:0:0:ffff:808:808 376 | 377 | # Include HTTP request method if found. This will create a 378 | # request key containing the request method + the actual request. 379 | # 380 | # [default: yes] 381 | # 382 | http-method yes 383 | 384 | # Include HTTP request protocol if found. This will create a 385 | # request key containing the request protocol + the actual request. 386 | # 387 | # [default: yes] 388 | # 389 | http-protocol yes 390 | 391 | # Write output to stdout given one of the following files and the 392 | # corresponding extension for the output format: 393 | # 394 | # /path/file.csv - Comma-separated values (CSV) 395 | # /path/file.json - JSON (JavaScript Object Notation) 396 | # /path/file.html - HTML 397 | # 398 | output /config/html/index.html 399 | 400 | # Ignore request's query string. 401 | # i.e., www.google.com/page.htm?query => www.google.com/page.htm 402 | # 403 | # Note: Removing the query string can greatly decrease memory 404 | # consumption, especially on timestamped requests. 405 | # 406 | no-query-string false 407 | 408 | # Disable IP resolver on terminal output. 409 | # 410 | no-term-resolver false 411 | 412 | # Treat non-standard status code 444 as 404. 413 | # 414 | 444-as-404 false 415 | 416 | # Add 4xx client errors to the unique visitors count. 417 | # 418 | 4xx-to-unique-count false 419 | 420 | # Store accumulated processing time from parsing day-by-day logs. 421 | # Only if configured with --enable-tcb=btree 422 | # 423 | #accumulated-time false 424 | 425 | # IP address anonymization 426 | # The IP anonymization option sets the last octet of IPv4 user IP addresses and 427 | # the last 80 bits of IPv6 addresses to zeros. 428 | # e.g., 192.168.20.100 => 192.168.20.0 429 | # e.g., 2a03:2880:2110:df07:face:b00c::1 => 2a03:2880:2110:df07:: 430 | # 431 | #anonymize-ip false 432 | 433 | # Include static files that contain a query string in the static files 434 | # panel. 435 | # e.g., /fonts/fontawesome-webfont.woff?v=4.0.3 436 | # 437 | all-static-files false 438 | 439 | # Include an additional delimited list of browsers/crawlers/feeds etc. 440 | # See config/browsers.list for an example or 441 | # https://raw.githubusercontent.com/allinurl/goaccess/master/config/browsers.list 442 | # 443 | #browsers-file 444 | 445 | # Date specificity. Possible values: `date` (default), or `hr`. 446 | # 447 | #date-spec hr 448 | 449 | # Decode double-encoded values. 450 | # 451 | double-decode false 452 | 453 | # Enable parsing/displaying the given panel. 454 | # 455 | #enable-panel VISITORS 456 | #enable-panel REQUESTS 457 | #enable-panel REQUESTS_STATIC 458 | #enable-panel NOT_FOUND 459 | #enable-panel HOSTS 460 | #enable-panel OS 461 | #enable-panel BROWSERS 462 | #enable-panel VISIT_TIMES 463 | #enable-panel VIRTUAL_HOSTS 464 | #enable-panel REFERRERS 465 | #enable-panel REFERRING_SITES 466 | #enable-panel KEYPHRASES 467 | #enable-panel STATUS_CODES 468 | #enable-panel REMOTE_USER 469 | #enable-panel GEO_LOCATION 470 | 471 | # Hide a referer but still count it. Wild cards are allowed. i.e., *.bing.com 472 | # 473 | #hide-referer *.google.com 474 | #hide-referer bing.com 475 | 476 | # Hour specificity. Possible values: `hr` (default), or `min` (tenth 477 | # of a minute). 478 | # 479 | #hour-spec min 480 | 481 | # Ignore crawlers from being counted. 482 | # This will ignore robots listed under browsers.c 483 | # Note that it will count them towards the total 484 | # number of requests, but excluded from any of the panels. 485 | # 486 | ignore-crawlers false 487 | 488 | # Parse and display crawlers only. 489 | # This will ignore robots listed under browsers.c 490 | # Note that it will count them towards the total 491 | # number of requests, but excluded from any of the panels. 492 | # 493 | crawlers-only false 494 | 495 | # Ignore static file requests. 496 | # req : Only ignore request from valid requests 497 | # panels : Ignore request from panels. 498 | # Note that it will count them towards the total number of requests 499 | # ignore-statics req 500 | 501 | # Ignore parsing and displaying the given panel. 502 | # 503 | #ignore-panel VISITORS 504 | #ignore-panel REQUESTS 505 | #ignore-panel REQUESTS_STATIC 506 | #ignore-panel NOT_FOUND 507 | #ignore-panel HOSTS 508 | #ignore-panel OS 509 | #ignore-panel BROWSERS 510 | #ignore-panel VISIT_TIMES 511 | #ignore-panel VIRTUAL_HOSTS 512 | ignore-panel REFERRERS 513 | #ignore-panel REFERRING_SITES 514 | ignore-panel KEYPHRASES 515 | #ignore-panel STATUS_CODES 516 | #ignore-panel REMOTE_USER 517 | #ignore-panel GEO_LOCATION 518 | 519 | # Ignore referers from being counted. 520 | # This supports wild cards. For instance, 521 | # '*' matches 0 or more characters (including spaces) 522 | # '?' matches exactly one character 523 | # 524 | #ignore-referer *.domain.com 525 | #ignore-referer ww?.domain.* 526 | 527 | # Ignore parsing and displaying one or multiple status code(s) 528 | # 529 | #ignore-status 400 530 | #ignore-status 502 531 | 532 | # Disable client IP validation. Useful if IP addresses have been 533 | # obfuscated before being logged. 534 | # 535 | # no-ip-validation true 536 | 537 | # Number of lines from the access log to test against the provided 538 | # log/date/time format. By default, the parser is set to test 10 539 | # lines. If set to 0, the parser won't test any lines and will parse 540 | # the whole access log. 541 | # 542 | #num-tests 10 543 | 544 | # Parse log and exit without outputting data. 545 | # 546 | #process-and-exit false 547 | 548 | # Display real OS names. e.g, Windows XP, Snow Leopard. 549 | # 550 | real-os true 551 | 552 | # Sort panel on initial load. 553 | # Sort options are separated by comma. 554 | # Options are in the form: PANEL,METRIC,ORDER 555 | # 556 | # Available metrics: 557 | # BY_HITS - Sort by hits 558 | # BY_VISITORS - Sort by unique visitors 559 | # BY_DATA - Sort by data 560 | # BY_BW - Sort by bandwidth 561 | # BY_AVGTS - Sort by average time served 562 | # BY_CUMTS - Sort by cumulative time served 563 | # BY_MAXTS - Sort by maximum time served 564 | # BY_PROT - Sort by http protocol 565 | # BY_MTHD - Sort by http method 566 | # Available orders: 567 | # ASC 568 | # DESC 569 | # 570 | #sort-panel VISITORS,BY_DATA,ASC 571 | #sort-panel REQUESTS,BY_HITS,ASC 572 | #sort-panel REQUESTS_STATIC,BY_HITS,ASC 573 | #sort-panel NOT_FOUND,BY_HITS,ASC 574 | #sort-panel HOSTS,BY_HITS,ASC 575 | #sort-panel OS,BY_HITS,ASC 576 | #sort-panel BROWSERS,BY_HITS,ASC 577 | #sort-panel VISIT_TIMES,BY_DATA,DESC 578 | #sort-panel VIRTUAL_HOSTS,BY_HITS,ASC 579 | #sort-panel REFERRERS,BY_HITS,ASC 580 | #sort-panel REFERRING_SITES,BY_HITS,ASC 581 | #sort-panel KEYPHRASES,BY_HITS,ASC 582 | #sort-panel STATUS_CODES,BY_HITS,ASC 583 | #sort-panel REMOTE_USER,BY_HITS,ASC 584 | #sort-panel GEO_LOCATION,BY_HITS,ASC 585 | 586 | # Consider the following extensions as static files 587 | # The actual '.' is required and extensions are case sensitive 588 | # For a full list, uncomment the less common static extensions below. 589 | # 590 | static-file .css 591 | static-file .js 592 | static-file .jpg 593 | static-file .png 594 | static-file .gif 595 | static-file .ico 596 | static-file .jpeg 597 | static-file .pdf 598 | static-file .csv 599 | static-file .mpeg 600 | static-file .mpg 601 | static-file .swf 602 | static-file .woff 603 | static-file .woff2 604 | static-file .xls 605 | static-file .xlsx 606 | static-file .doc 607 | static-file .docx 608 | static-file .ppt 609 | static-file .pptx 610 | static-file .txt 611 | static-file .zip 612 | static-file .ogg 613 | static-file .mp3 614 | static-file .mp4 615 | static-file .exe 616 | static-file .iso 617 | static-file .gz 618 | static-file .rar 619 | static-file .svg 620 | static-file .bmp 621 | static-file .tar 622 | static-file .tgz 623 | static-file .tiff 624 | static-file .tif 625 | static-file .ttf 626 | static-file .flv 627 | #static-file .less 628 | #static-file .ac3 629 | #static-file .avi 630 | #static-file .bz2 631 | #static-file .class 632 | #static-file .cue 633 | #static-file .dae 634 | #static-file .dat 635 | #static-file .dts 636 | #static-file .ejs 637 | #static-file .eot 638 | #static-file .eps 639 | #static-file .img 640 | #static-file .jar 641 | #static-file .map 642 | #static-file .mid 643 | #static-file .midi 644 | #static-file .ogv 645 | #static-file .webm 646 | #static-file .mkv 647 | #static-file .odp 648 | #static-file .ods 649 | #static-file .odt 650 | #static-file .otf 651 | #static-file .pict 652 | #static-file .pls 653 | #static-file .ps 654 | #static-file .qt 655 | #static-file .rm 656 | #static-file .svgz 657 | #static-file .wav 658 | #static-file .webp 659 | 660 | ###################################### 661 | # GeoIP Options 662 | # Only if configured with --enable-geoip 663 | ###################################### 664 | 665 | # Standard GeoIP database for less memory usage. 666 | # 667 | # std-geoip true 668 | 669 | # Specify path to GeoIP database file. i.e., GeoLiteCity.dat 670 | # .dat file needs to be downloaded from maxmind.com. 671 | # 672 | # For IPv4 City database: 673 | # wget -N http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz 674 | # gunzip GeoLiteCity.dat.gz 675 | # 676 | # For IPv6 City database: 677 | # wget -N http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz 678 | # gunzip GeoLiteCityv6.dat.gz 679 | # 680 | # For IPv6 Country database: 681 | # wget -N http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz 682 | # gunzip GeoIPv6.dat.gz 683 | # 684 | # For GeoIP2 City database: 685 | # wget -N http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz 686 | # gunzip GeoLite2-City.mmdb.gz 687 | # 688 | # For GeoIP2 Country database: 689 | # wget -N http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz 690 | # gunzip GeoLite2-Country.mmdb.gz 691 | # 692 | # Note: `geoip-city-data` is an alias of `geoip-database` 693 | # 694 | geoip-database /usr/local/share/GeoIP/GeoLite2-City.mmdb 695 | 696 | ###################################### 697 | # Tokyo Cabinet Options 698 | # Only if configured with --enable-tcb=btree 699 | ###################################### 700 | 701 | # GoAccess has the ability to process logs incrementally through the on-disk 702 | # B+Tree database. 703 | # 704 | # It works in the following way: 705 | # - A data set must be persisted first with --keep-db-files, then the same data 706 | # set can be loaded with --load-from-disk. 707 | # - If new data is passed (piped or through a log file), it will append it to 708 | # the original data set. 709 | # - To preserve the data at all times, --keep-db-files must be used. 710 | # - If --load-from-disk is used without --keep-db-files, database files will be 711 | # deleted upon closing the program. 712 | 713 | # On-disk B+ Tree 714 | # Persist parsed data into disk. This should be set to 715 | # the first dataset prior to use `load-from-disk`. 716 | # Setting it to false will delete all database files 717 | # when exiting the program. 718 | #keep-db-files true 719 | 720 | # On-disk B+ Tree 721 | # Load previously stored data from disk. 722 | # Database files need to exist. See `keep-db-files`. 723 | #load-from-disk false 724 | 725 | # On-disk B+ Tree 726 | # Path where the on-disk database files are stored. 727 | # The default value is the /tmp/ directory 728 | # Note the trailing forward-slash. 729 | # 730 | #db-path /tmp/ 731 | 732 | # On-disk B+ Tree 733 | # Set the size in bytes of the extra mapped memory. 734 | # The default value is 0. 735 | # 736 | #xmmap 0 737 | 738 | # On-disk B+ Tree 739 | # Max number of leaf nodes to be cached. 740 | # Specifies the maximum number of leaf nodes to be cached. 741 | # If it is not more than 0, the default value is specified. 742 | # The default value is 1024. 743 | # 744 | #cache-lcnum 1024 745 | 746 | # On-disk B+ Tree 747 | # Specifies the maximum number of non-leaf nodes to be cached. 748 | # If it is not more than 0, the default value is specified. 749 | # The default value is 512. 750 | # 751 | #cache-ncnum 512 752 | 753 | # On-disk B+ Tree 754 | # Specifies the number of members in each leaf page. 755 | # If it is not more than 0, the default value is specified. 756 | # The default value is 128. 757 | # 758 | #tune-lmemb 128 759 | 760 | # On-disk B+ Tree 761 | # Specifies the number of members in each non-leaf page. 762 | # If it is not more than 0, the default value is specified. 763 | # The default value is 256. 764 | # 765 | #tune-nmemb 256 766 | 767 | # On-disk B+ Tree 768 | # Specifies the number of elements of the bucket array. 769 | # If it is not more than 0, the default value is specified. 770 | # The default value is 32749. 771 | # Suggested size of the bucket array is about from 1 to 4 772 | # times of the number of all pages to be stored. 773 | # 774 | #tune-bnum 32749 775 | 776 | # On-disk B+ Tree 777 | # Specifies that each page is compressed with ZLIB|BZ2 encoding. 778 | # Disabled by default. 779 | # 780 | #compression zlib 781 | --------------------------------------------------------------------------------