Skip to content

A New LOG_TYPE: NPM_SEPARATED (or maybe NPM_SPLIT) #164

@xavier-hernandez

Description

@xavier-hernandez

Discussed in https://github.com/xavier-hernandez/goaccess-for-nginxproxymanager/discussions/161

Originally posted by wernerm September 18, 2023
I would like to suggest a new feature please: The support for a new LOG_TYPE option called NPM_SEPARATED (or maybe NPM_SPLIT) or something similar.

What does it do?

It allows you to see separate statistics for each individual NPM proxy-host. (Instead of aggregated logs.)

How will it work?

An instance of GOACCESS is created for every NPM proxy-host.

  • append "/host/n" to the url to access the instance, for example http://localhost:7880/host/7
    • for every host, the following file(s) are read and parsed.
      • proxy-host-*_access.log.gz
      • proxy-host-*_access.log
      • proxyhost-.log

How about an Example?

Suppose you visit http://localhost:7880/host/42, you will only see results for the following parsed logs:

  • proxy-host-42_access.log.gz
  • proxy-host-42_access.log
  • proxy*host-42.log

PS: If you would consider such a feature, one could also consider a mechanism to extract the hostname(s) of the Proxy Hosts from NPM's SQLite DB, so that it can be displayed (instead of a number).

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