Yes, using Chainsaw with a VFSLogFilePatternReceiver will allow you to
remotely tail log files if they're available via one of the file systems
supported by Jakarta Commons-VFS.

I've used both the sftp:// support to tail a file that's on another server
and accessible via ssh, and smb:// to tail a file that's on a windows server
(smb support is in the Jakarta Commons-VFS sandbox, so you'd have to build
from source).

There is an example receiver configuration available from Chainsaw's Welcome
tab, and information on how to get VFS working with Chainsaw here:
http://logging.apache.org/chainsaw/distributionnotes.html

Link to Jakarta Commons-VFS:
http://commons.apache.org/vfs/
See the 'file system types' link.

If possible, I'd suggest pulling down the log4j companions and Chainsaw from
the svn repo, build using maven, and run that version of Chainsaw....it has
a ton of new features (updated Chainsaw version hopefully released soon).

Scott

On Thu, Jun 3, 2010 at 2:46 PM, laredotornado <[email protected]>wrote:

>
> Hi,
>
> I want to setup Chainsaw 2 locally to track log4j logs on a remote machine.
> The thing is that I don't want to have to modify the remote
> log4j.properties
> file, since it is a production file, and modifying production things
> requires much bureaucracy here.  Is there a way to configure a receiver to
> monitor the remote logs without having to modify that log4j.properties
> file?
>
> The tutorial I was reading implies that I have to add a new appender to the
> remote properties file --
> http://www.informit.com/guides/content.aspx?g=java&seqNum=459.
>
> Thanks, - Dave
>
> --
> View this message in context:
> http://old.nabble.com/Chainsaw-V2%3A-Possible-to-create-receiver-without-modifying-remote-log4j-file--tp28773352p28773352.html
> Sent from the Log4j - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to