Last active
February 8, 2019 18:57
-
-
Save dsmrt/d03ee65699dfae595b446d20717ef99b to your computer and use it in GitHub Desktop.
Grep large craft logs. Looking for errors.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
grep -B 3 -A 10 -n '\[error\]' storage/logs/web.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For craft 2:
grep -B 3 -A 10 -n '\[error\]' craft/storage/runtime/logs/*.log