You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.
I've noticed the error-log.sh scanner script doesnt look within the .gz files. It doesnt appear to cause an error, but when i ammend the script as follows and use zgrep, i get some hits on curl failing and other artefacts which could be useful.
You would need to cater for both the httperror.log as well as the gziped ones which i believe zgrep can do, in which case i'd suggest just replacing grep with zgrep in the original script.
The text was updated successfully, but these errors were encountered:
I've noticed the error-log.sh scanner script doesnt look within the .gz files. It doesnt appear to cause an error, but when i ammend the script as follows and use zgrep, i get some hits on curl failing and other artefacts which could be useful.
hits=$(find "$root_directory/var/log/" -type f -iname "httperr.gz" -exec zgrep -HEi "$regex" {} ;);
You would need to cater for both the httperror.log as well as the gziped ones which i believe zgrep can do, in which case i'd suggest just replacing grep with zgrep in the original script.
The text was updated successfully, but these errors were encountered: