Search Logs for Errors

Search a log file for error lines with surrounding context.

Searches a log file for lines matching a pattern, case-insensitively. -i ignores case, -n shows line numbers, -A 5 shows 5 lines after each match for context.

When you need this: When hunting for specific errors in a large log file without reading the entire file.

Variables

Command


        
4 views 0 copies
Log in to rate
Log in to save

Free account — save snippets into your own collections.