bobbyiliev / bobbyiliev/quick_access_logs_summary
Bug: nginx logs geopip not resolving
- Dominant language
- Shell
- Stars
- 32
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug
When running the script I am getting back alot of http code instead of the IP and Geolocation for the IP when attempting to perform the geo location check for the IPs discovered by the scripts in the logs
### To Reproduce
Running on Debian 10
Installed nginx via apt
Using default logging
chmod +x to the script
ran the script with the proper /path/to/nginx/access.log
### Expected behavior
Provide geolocation of the IP address
### Screenshots
See attached error file
### Additional context
[spike_geopip_error.txt](https://github.com/bobbyiliev/quick_access_logs_summary/files/8364349/spike_geopip_error.txt)
Contributor guide
Research direction
Reproduce the issue on Debian 10 with nginx's default access log and the supplied spike_geopip_error.txt output. Start by tracing the script's log parsing and IP geolocation lookup; done means discovered IPs produce geolocation results instead of HTTP codes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash, nginx, shell
- Domain
- cli, observability
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100