Comments on: GlassFish Log and Regular Expressions https://www.stormacq.com/glassfish-log-and-regular-expressions/ Some not-so random thoughts about this small IT World Mon, 25 Jan 2016 12:47:01 +0000 hourly 1 https://wordpress.org/?v=4.9.1 By: Eric Lerognon https://www.stormacq.com/glassfish-log-and-regular-expressions/comment-page-1/#comment-127 Fri, 29 Aug 2008 04:30:43 +0000 https://www.stormacq.com/?p=201#comment-127 For a bit more power I routinely use the following Perl script. In the example it extracts messages relevant to eInsight 5.1.

http://blogs.sun.com/lerognon/resource/jcapslog.html

]]>
By: Claudio Miranda https://www.stormacq.com/glassfish-log-and-regular-expressions/comment-page-1/#comment-126 Mon, 25 Aug 2008 11:19:39 +0000 https://www.stormacq.com/?p=201#comment-126 At my linux (ubuntu) machine, some escapes are not needed, see the revided version

tail server.log | sed -e ‘s/^\[.*;|//’ -e ‘s/|#]$//’

]]>
By: Claudio Miranda https://www.stormacq.com/glassfish-log-and-regular-expressions/comment-page-1/#comment-125 Mon, 25 Aug 2008 11:15:10 +0000 https://www.stormacq.com/?p=201#comment-125 Hi Sebastien, you can use -e sed parameter to pass many RE as needed

tail server.log | sed -e ‘s/^\[.*;\|//’ -e ‘s/\|#\]$//’

]]>