AWK: Extract Logs for the Given Date(s) from a Log File

If your log file has entries like these: Then you can use the following bash script snippet to extract logs only for a particular day or consecutive days, including everything – even lines not starting with the date such as stacktraces – between the first log of the date up to the first log ofContinue reading “AWK: Extract Logs for the Given Date(s) from a Log File”

Hacking Jasper to Get Object Model of a JSP Page

To perform some checks and statistical analysis on my JSPs I needed a DOM-like, hierarchical model of elements contained in them. But parsing JSP pages isn’t trivial and is best left to a tool that excels in it – the Jasper JSP compiler used by Tomcat, Jetty, GlassFish and likely also by all others. ThereContinue reading “Hacking Jasper to Get Object Model of a JSP Page”

Dependency Finder 1.2.0 for Java

Dependency Finder for java can help you to find your way in unknown class files/library. Usage: Import the class files – File > Extract; wait… Note: you may need to increase the JVM’s memory. Store the extracted information about the imported classes – File > Save Select the programming elements to examine by selecting theContinue reading “Dependency Finder 1.2.0 for Java”