-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A New LOG_TYPE: NPM_SEPARATED
(or maybe NPM_SPLIT
)
#164
Comments
Based on the feature request above, just another idea for possible future features... Maybe a new environment variable could be introduced, with a name like So For example: The user sets the The user can then set
So, then the user can set
That would give users complete control of which logs get processed (for NPM, at least). |
@xavier-hernandez Hello, I think you mentioned a while ago that you had a chance to implement some of this (I think you mentioned it in the Discussions). Have you made a release with a similar feature yet, or maybe have another repo available that I can test? |
@wernerm currently there is nothing that divides it up like your asking but I'll look into what you're asking. Creating that LOG_SCOPE for A,R,E shouldn't be that difficult however separating them would. I'm not sure who that would impact a PC though :) running all those instances. |
@wernerm I can spinoff a branch/tag for you test if you'd like. We can see how it turns out? |
Hi @xavier-hernandez that is a good idea, if you can find the time. We will help test it!
Well, the "A","R","E" would work almost like the existing options, just including or excluding some log types. So it's just more specific. However, yes, I totally agree that the proposed things like "a","r","e" could get intense if there are many busy hosts... Maybe something like "host filters" could be introduced, but that would complicate things even more... (Where does one stop the madness? Everyone will need to read the |
Discussed in #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 calledNPM_SEPARATED
(or maybeNPM_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.
http://localhost:7880/host/7
How about an Example?
Suppose you visit
http://localhost:7880/host/42
, you will only see results for the following parsed logs: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).
The text was updated successfully, but these errors were encountered: