I'm able to tail a log file via http with nginx-0.7.62, so I suspect support for range header is the issue (or you're using an old version of VFSLogFilePatternReceiver, haven't tried the 'currently released' version in a while).
Scott On Fri, Oct 16, 2009 at 12:15 AM, Scott Deboy <[email protected]> wrote: > For me to tail http content using VFSLogFilePatternReceiver, I had to pull > down an older version of httpclient (1.3) and commons-codec (since > commons-vfs uses apis from httpclient 1.3). > > VFS uses the 'range' header to request specific bytes (tail the file), so > maybe your web server doesn't support that header (that's what I'm seeing > with nanoHTTPD). I'll try with a different server that does support that > header just to make sure everything's working.. > > Scott > > > On Thu, Oct 15, 2009 at 7:00 AM, Esther Parrilla-Endrino < > [email protected]> wrote: > >> Hi folks! >> >> I would like to read, display and do a near-real-time tail of a remote log >> file stored in a Tomcat server using Chainsaw (the files shall be >> retrieved >> using HTTP GET). >> >> I have been able to configure the VFSLogFilePatternReceiver , install all >> 3rd party libraries etc... and once I launch Chainsaw I can see the new >> receiver tab and the first bunch of messages of my remote log file but >> even >> though I have set the "tailing" flag to "true" the file is not refreshed. >> >> The last messages I have in my display are: >> >> Releasing connection back to connection manager >> Freeing connection, hostConfig=HostConfiguration[host= >> http://remotehost:8080 >> ] >> Adding connection at: 12556119101 >> Notifying no-one, there are no waiting threads >> >> My configuration file is the following one: >> >> <?xml version="1.0" encoding="UTF-8" ?> >> <!DOCTYPE log4j:configuration > >> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" >> debug="true"> >> >> <!-- REMOTE FILE RECEIVER --> >> <plugin name="VFSLogFilePatternReceiver" >> class="org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver"> >> <param name="fileURL" value="http://remotehost:8080/logs/my.log"/> >> <param name="timestampFormat" value="yyyy-MM-dd HH:mm:ss,SSS"/> >> <param name="logFormat" value="TIMESTAMP LEVEL [LOGGER] MESSAGE"/> >> <!--<param name="logFormat" value="TIMESTAMP [THREAD] LEVEL LOGGER >> (FILE:LINE) - MESSAGE"/>--> >> <param name="name" value="ExampleHttpReceiver"/> >> <param name="promptForUserInfo" value="false"/> >> <param name="tailing" value="true"/> >> </plugin> >> <root> >> <level value="DEBUG"/> >> </root> >> <logger name="org.apache.log4j"> >> <level value="OFF"/> >> </logger> >> </log4j:configuration> >> >> I have the following jar files in my "$HOME/.chainsaw/plugins/" folder: >> >> commons-logging-1.1.1.jar >> commons-vfs-1.0.jar >> log4j-chainsaw-vfs.jar >> >> Is there anything else I have missed in my installation? >> Does VFS support HTTP GET remote files retrieval with refreshing? >> >> Thanks in advance, >> >> e >> > >
