logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mihail K <sir.misho...@gmail.com>
Subject Re: VFSLogFilePatternReceiver not tailing over sftp
Date Thu, 18 Aug 2011 12:37:14 GMT
Thank you for looking into it. I'm looking forward to the new release!

On Wed, Aug 17, 2011 at 11:12 AM, Scott Deboy <scott.deboy@gmail.com> wrote:

> 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 <scott.deboy@gmail.com>
> 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 <sir.mishonis@gmail.com>
> 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:password@78.90.xx.xx
> ///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!
> >>
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message