I am trying to filter a log file based on the following:
date range of an error (yyyy-mm-dd)
timestamp range of an error (01:00:00 - 00:00:00)
keywords (previousFireTime, nextFireTime)
I've been trying to grep
the log file, however, I am unable to get the data that I need with using grep
. Would I have to use a combination of awk
and grep
or awk
and sed
to get the information I need? Or would there be a better more efficient route to go by to filter a log file?
Edit: Example log output
2018-06-06 10:46:43,708 INFO [stdout] (AsyncAppender-Worker-STDOUT) INFO
[erFactoryBean_Worker-9] [c.c.c.s.i.d.ResendJob] Executing Quartz scheduled
job: JobExecutionContext: trigger: 'ResendJob.trigger_ResendJob job:
DEFAULT.ResendJob fireTime: 'Wed Jun 06 10:46:43 UTC 2018 scheduledFireTime:
Wed Jun 06 10:46:43 UTC 2018 previousFireTime: 'Wed Jun 06 10:45:43 UTC 2018
nextFireTime: Wed Jun 06 10:47:43 UTC 2018 isRecovering: false refireCount: 0