You can use log4j Chainsaw V2 and VFSLogFilePatternReceiver to parse and close the log file using Jakarta Commons-VFS support for ssh.
Chainsaw page: http://logging.apache.org/chainsaw/
Page
log4j 'companions: http://logging.apache.org/log4j/companions/
The easiest way to start with a chainsaw is to check it (svn) together with the additional components and companions of the recipients, build them using maven.
After creating Chainsaw, you can run the script in the appassembler / bin folder and configure Chainsaw with a receiver configuration that can display a log file (see the "Welcome Greetings" section / sample receiver configuration example for an example configuration file).
Scott source share