Skip to the content.

Log Parsing

The diagram below lists the top 6 log parsing commands.

1. GREP

2. CUT

3. SED

4. AWK

5. SORT

6. UNIQ

These commands are often used in combination to quickly find useful information from the log files.

For example, the below commands list the timestamps (column 2) when there is an exception happening for xxService.

grep “xxService” service.log | grep “Exception” | cut -d” “ -f 2

Top 6 Log Parsing Commands