Filter Logs with Grep : linux Command Grep
Filter Logs with Grep : linux Command Grep Let’s understand the use of grep is to extract useful information from system logs: grep -Eoc “^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}.* 200” /srv/www/example.com/logs/access.log In this command, grep filters an Apache access log for all lines that begin with an IP address, followed by a number of characters, a space and then the … Read more