Skip to content
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

Strip URLS and ports to get only hostnames #2701

Open
dtouzeau opened this issue Aug 4, 2024 · 0 comments
Open

Strip URLS and ports to get only hostnames #2701

dtouzeau opened this issue Aug 4, 2024 · 0 comments

Comments

@dtouzeau
Copy link

dtouzeau commented Aug 4, 2024

This is for squid analysis.
when squid uses ssl the request is of type CONNECT host:port which is well reported by goaccess, however, it would be interesting to remove the port suffix in order to combine only requests regardless of the destination port.

In the case of HTTP requests, the entire request is displayed in the report, which isn't interesting.
In the case of squid, only a host report should be interesting in order to get the right average.

Is it possible to add a token such as:

--strip-urls in order to limit requests to the "domain name" part only.

For information whe use this specific pattern

%^ %^ %^ %^ %^[%^]: %x.%^ %~ %T %h %^/%s %b %m %U %e %^/%^ %^ mac="%^" accessrule%^ ua="%u""

command line:

goaccess --date-format=%s --time-format=%s --no-global-config --datetime-format="%d/%b/%Y:%H:%M:%S" --log-format="%x.%^ %T %h %^/%s %b %m %U %e %^/%^ %^ mac=\"%^\" accessrule%^ ua=\"%u\"" --num-tests=100 --no-query-string --exclude-ip 127.0.0.1 --jobs=4 --ignore-panel=REFERRERS --ignore-panel=REFERRING_SITES --ignore-panel=REQUESTS_STATIC --ignore-panel=KEYPHRASES --log-file=/var/log/squid/access.log --output=/tmp/tempfile_1722790709489709195.tmp.13af9cdea8f790b342565b28aea449a8.html --debug-file=/tmp/debug.log --invalid-requests=/tmp/invalid.log

@dtouzeau dtouzeau changed the title Strip URLS ports to hostname Strip URLS and ports to get only hostnames Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant