I'm trying to make a script that will search for log lines that have occurred between a certain time/date range in a log file.
I tried using the solution in this page:
Filter log file entries based on date range
That solution works just fine, but it takes a bit to complete. Are there any other methods for performing this search that may yield results faster? I'm not being OCD about the speed in this case, it's just that I am searching through some syslog files that contain several gigabytes of data each, so if I could shave some time off of this search it would be fantastic. Grep with regex came to mind, but I'm not sure if it would make that much of a difference.
Here is the log format that is used in the log files:
2014-12-31T23:59:33-05:00 device logdata