Application Server Troubleshooting tip
By Jesse Morgan
We recently ran across a problem in production that we could not replicate in lower environments. Since this is not only a high use application, but an exceptionally “chatty” app, searching the logs was an excersise in futility (*one* of yesterday’s production logs was 6,975,291 lines long, with multiple logfiles per app, multiple apps and multiple servers).
So how do you find a needle in the haystack? Get a smaller haystack. In the quickest window possible, perform the following three steps
- tail log1 log2 log3 log4 >combined.log
- reproduce error
- ctrl-c tail process as quickly as possible
Doing so reduced our 11,480,799 lines (with 780,527 errors) to 1200 lines.