Ubuntu – How to grep logs based on timestamp

grep

I need logs only from 09:36 to 09:39 in server logs where the timestamp is 2019-03-19T09:37:19 like this. Can anyone suggest me grep command for this

Best Answer

grep '2019-03-19T09:3[6-9]' /var/log/syslog