Log Analyzer / Analyzer on Unix

What popular tool do people use on Unix to analyze / analyze log files? When doing the counting, find a unique one, select / copy a specific line that has certain patterns. Consult some tools or some keyword. Since I believe that there should be similar questions asked earlier, but I don’t know a word about keywords. Thank.

+3
source share
5 answers

For regular nightly checking, there is a logwatch in which there are several different scripts in /usr/share/logwatch/scripts/serviceswhich check certain things (for example, a web server, ftp server material, sshd-related material, etc.) in syslog. The default setting allows most of them, but you can enable / disable as you like, or even write your own scripts.

For viewing in real time multitail .

+3
source

, , . , , , unix textutils, . , .

, -, , NCSA, - nginx, .

unix , awk! , user-agent Googlebot:

awk 'BEGIN {FS="\t"}  $7 ~ /Googlebot/ { print; }' < logfile

awk 'BEGIN {FS="\t"}  { print $4; }' < logfile | sort | uniq -c | sort -n

, , , .

+4

, . - syslog, /. , perl, python awk.

+1

, , , Perl, Python, (g) awk, Ruby, PHP, Java .. , , , csv ..

+1

lnav, . , , , , , /, /, SQL . .

0

Source: https://habr.com/ru/post/1736400/


All Articles