↑ ↓ select, Enter open, Esc close

Filter the access log by time range

Adjust the values, the command updates live
root@server
awk -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_log

Compares 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

Related one-liners

All in Logs

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.