Skip to content

Can't get it to work with CUSTOM #215

@elementalTIMING

Description

@elementalTIMING

Hi,

my server stores with Plesk Obsidian stores the log files with slightly different names. So I have to use a CUSTOM mode. The volumes are correct (checked by having a look into the docker). But when starting the UI I only see this image (forever):

Image

My custom config seems to be ok (no errors) and

# Time/date
time-format %T
date-format %d/%b/%Y

# SSL access log format — adapt this to your log lines
log_format %h %^[%d:%t %^] "%r" %s %b "%R" "%u"   # example

# Indicate which files to read
log-file /opt/log/proxy_access_ssl_log

real-time-html true

# other goaccess.conf settings (ignored env’s etc as per the image)
browsers-file /goaccess-config/browsers.list

the docker-compose:

version: '3.3'
services:
    goaccess:
        image: 'xavierh/goaccess-for-nginxproxymanager:latest'
        container_name: goaccess
        restart: always
        ports:
            - '7880:7880'
        environment:
            - SKIP_ARCHIVED_LOGS=True
            - DEBUG=true
            - EXCLUDE_IPS=127.0.0.1 
            - LOG_TYPE=CUSTOM
            - ENABLE_BROWSERS_LIST=True 
            - HTML_REFRESH=5 
            - KEEP_LAST=30 
            - PROCESSING_THREADS=1 
        volumes:
        - /var/www/vhosts/MYDOMAIN/logs:/opt/log
        - /root/goaccess:/opt/custom

I can also see in the console log that the HTML data was rendered but not served:

[+] Running 2/2
✔ Network goaccess_default  Created                                                                                                                                        0.0s
✔ Container goaccess        Created                                                                                                                                        0.1s
Attaching to goaccess
goaccess  |
goaccess  | GOAN v1.1.36
goaccess  |
goaccess  |
goaccess  | NGINX SETUP...
goaccess  |
goaccess  | NGINX BASIC AUTH
goaccess  | -------------------------------
goaccess  | None
goaccess  |
goaccess  | 	Kuma ADDED TO BROWSERS LIST
goaccess  |
goaccess  | 	TestBrowser ADDED TO BROWSERS LIST
goaccess  | Custom directory /opt/custom is available.
goaccess  |
goaccess  | CUSTOM
goaccess  | -------------------------------
goaccess  | goaccess.conf file found
goaccess  | goaccess.conf readable
goaccess  |
goaccess  | 	\BROWSERS FILE ALREADY DEFINED IN CUSTOM GOACCESS.CONF. IGNORING CUSTOM_BROWSERS VARIABLE
goaccess  |
goaccess  | DEBUG
goaccess  | -------------------------------
goaccess  | OFF
goaccess  |
goaccess  | RUN CUSTOM GOACCESS
[RENDERING /opt/log/proxy_access_ssl_log] {1026514} @ {38019/s}
goaccess  | <!DOCTYPE html><html lang='en'><head><meta charset='UTF-8'><meta name='theme-color' content='#1e1e2f'><meta name='referrer' content='no- .....

What am I doing wrong? I really appreciate any help.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions