Filter the access log by time range
show log between two times | filter access log by time | requests between 14:00 and 15:00 | what happened at this time in the log | awk | access-log | time-rangeawk -v von="09/Oct/2026:14:00" -v bis="09/Oct/2026:15:00" 'substr($4, 2) >= von && substr($4, 2) < bis' /var/www/vhosts/system/example.com/logs/access_ssl_logCompares the timestamp of each line as text against start and end values and prints only lines inside the window. The values must use the log format (day/month/year:hour:minute, month as English abbreviation). Can be combined with the other analyses by piping the output onward.
Note: The text comparison only works reliably within the same month. For windows spanning a month boundary, run it twice.
Also searched as
- show log between two times
- filter access log by time
- requests between 14:00 and 15:00
- what happened at this time in the log