-
Notifications
You must be signed in to change notification settings - Fork 10
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
Developer access to web logs #85
Comments
The current deployment artifact is a container with nginx. So let's assume that is the parsing target. The deployment environment is Portainer. It allows shared volumes between containers. So, one way to achieve this with minimal changes to our current deployment artifact:
|
Look into .htaccess support for existing mappings |
I've fetched logs from the past 24 hours of production
I will parse out the 404s. I'd paste them here, but I don't want to reveal any potential PII. UPDATE: the logs are very truncated. I think this server's default journalctl configuration might be to aggressively limit the size of logs. Or it might be a podman thing. I'll keep looking. |
#184 gave us additional access logging, so after a day I have pulled down some aggregate info Some of it is the usual randomness from the public internet, but there are legitimate clues to some missing stuff, too. |
@finanalyst See the file I've linked in my previous comment for some counts of 404s per uri from production. Our Caddy access logs give us json of the following form:
We can ask journalctl for just that JSON (omitting other journal metadata with
Then with jq and awk we can do the counting cat logs.txt | jq -r '"\(.status)\t\(.request.uri)"' | \
awk '
/^404/ {hist[$2]++}
END {
for (item in hist) {
printf "%s\t-> %s\n", hist[item], item}
}
' > counts.txt |
We could definitely use access to whatever is serving the content's web logs so we can (at least) track any 404 requests, which probably indicate a rename or gap not addressed by the .htaccess mappings (or equivalent)
See also #104 #164 #181
The text was updated successfully, but these errors were encountered: