svn rev 1158546 addressed the inability to tail with SFTP..I will build a developer snapshot soon. By the way, there is finally a push to release the remaining companions and the updated version of Chainsaw, so hopefully that will be available as release soon.
Scott On Wed, Aug 10, 2011 at 5:55 AM, Scott Deboy <[email protected]> wrote: > I use tailing all the time with the file: support in VFS, so tailing in > general is functioning properly, but I was able to repro your tailing issue > when I used sftp... I'll look into it. > > Scott > > > On Wed, Aug 10, 2011 at 4:18 AM, Mihail K <[email protected]> wrote: > >> Hello, >> Chainsaw is loading the remote log file but no new events are added unless >> I >> manually restart the receiver. Is the tailing feature implemented for >> VFSLogFilePatternReceiver? Here's my setup: >> - apache-chainsaw-2.1.0-SNAPSHOT from >> people.apache.org/~sdeboy/<http://people.apache.org/%7Esdeboy/> >> >> - commons-vfs-1.1-SNAPSHOT.jar >> >> - receiver config: >> <plugin name="TansrvReleaseLogFileReceiver" >> class="org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver"> >> <param name="fileURL" >> value="sftp://****:*****@78.90.xx.xx///var/opt/tansrv/log/tansrv.log"/> >> <param name="logFormat" value="TIMESTAMP LEVEL LOGGER MESSAGE"/> >> <param name="tailing" value="true"/> >> <param name="autoReconnect" value="true"/> >> </plugin> >> >> Here is VFSLogFilePatternReceiver's chainsaw log output: >> >> 8 - 2011/08/10 13:01:57 - - INFO - >> org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver - attempting to >> load >> file: sftp://username:[email protected]///var/opt/tansrv/log/tansrv.log >> - >> - Thread-5 - - org.apache.log4j.spi.Log4JULogger - info - >> Log4JULogger.java - 0 - 105 - chainsaw - log >> >> 38 - 2011/08/10 13:02:04 - - DEBUG - >> org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver - regexp is >> (\S+-\S+-\S+ \S+:\S+:\S+,\S+)[ ]+(\S*\s*?)[ ]+(\S*\s*?)[ ]+(.*) - - >> Thread-5 - - org.apache.log4j.spi.Log4JULogger - debug - >> Log4JULogger.java >> - 7610 - 59 - chainsaw - log >> >> 39 - 2011/08/10 13:02:04 - set - DEBUG - >> org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver - >> /var/opt/tansrv/log/tansrv.log exists - - Thread-5 - - >> org.apache.log4j.spi.Log4JULogger - debug - Log4JULogger.java - 0 - 59 - >> chainsaw - log >> >> 48 - 2011/08/10 13:02:07 - - DEBUG - >> org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver - >> /var/opt/tansrv/log/tansrv.log - tailing file - file size: 275775 - - >> Thread-5 - - org.apache.log4j.spi.Log4JULogger - debug - >> Log4JULogger.java >> - 2422 - 59 - chainsaw - log >> >> Thank you for your time! >> > >
