tipsandtricks:howtoreadlogs
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tipsandtricks:howtoreadlogs [2021/11/16 09:15] – patrik | tipsandtricks:howtoreadlogs [2023/09/29 07:01] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ====== How to read logs in *nix cli ====== | ====== How to read logs in *nix cli ====== | ||
| + | // | ||
| + | by Patrik Hermansson | ||
| + | // | ||
| + | |||
| This is mostly based on the bash terminal but should be more application (less, tail and so on) than the specific terminal.\\ | This is mostly based on the bash terminal but should be more application (less, tail and so on) than the specific terminal.\\ | ||
| This is also how i use the application listed below to read logs and to troubleshoot. | This is also how i use the application listed below to read logs and to troubleshoot. | ||
| Line 17: | Line 21: | ||
| == Searching in the file == | == Searching in the file == | ||
| - | Using the '' | + | /[search |
| - | Using the '' | + | ?[search pattern] = search |
| - | == Navigating the logfile | + | == How to navigate logs == |
| - | Using '' | + | g = go to top of the log (top of file) \\ |
| Can also be used to go to a specific row '' | Can also be used to go to a specific row '' | ||
| - | Using '' | + | G = go to the end of log (bottom of file)\\ |
| + | n = go to next hit down in the search pattern \\ | ||
| + | N = go to previous hit up in the search pattern \\ | ||
| + | q = quit less \\ | ||
| === Tail === | === Tail === | ||
tipsandtricks/howtoreadlogs.1637054133.txt.gz · Last modified: 2023/09/29 07:01 (external edit)