Closed erikng closed 7 years ago
You don't need to unzip them. You can use bzgrep
to grep through the zip files
eg: you could do something like:
SVR_DEBUG_LOGS=$(ls -d ${LOG_LOCATION}/* | grep -v -e "AssetCache.pid" -e "LastState.plist")
for DEBUG_LOG in $SVR_DEBUG_LOGS; do
echo "- Searching log: $DEBUG_LOG for entries from: $YESTERDAY ..."
bzgrep -E ^\s*"${YESTERDAY}" "$DEBUG_LOG" >> "${TMP_LOCATION}"/MergedLog-"${YESTERDAY}".log
done
Send a PR.
This issue will be fixed in the next version of Cacher
This will reduce logging errors.