I have a 400MB+ Tomcat log file (catalina.out). How can I pull out entries for a given time period?
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
|
|
Not sure if this would work well for your 400MB file, but here are some CLI one liners that would do the trick. If you're looking for entries for a specific date, Otherwise, you could probably use
For example with an input file "test":
You could run
|
|||||
|
|
Consider using tools such as splunk, loglogic, logrhythm, graylog2.org(opensource) |
|||
|
|
