logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rami Abramson" <rabram...@sharedbook.com>
Subject RE: viewing remote logfile over SSH using Chainsaw
Date Tue, 19 Jul 2005 06:30:09 GMT
We have all the required dependencies and the "known_hosts" seems not to
be the problem.

Nevertheless, here's the Chainsaw execution which has an error in the
end (after the printout the lines that contain the username/password etc
where changed for security reasons):

===========
D:\dev\tools\logging\chainsaw>chainsaw.bat

D:\dev\tools\logging\chainsaw>java -classpath
ext-lib/commons-collections-3.1.jar;ext-lib/commons-collections-testfram
ework-3.1.jar;ext-lib/commons-compress-20040530.jar;ext-lib/commons-http
client-3.0
-rc3.jar;ext-lib/commons-logging.jar;ext-lib/commons-logging-api.jar;ext
-lib/commons-net-1.4.0.jar;ext-lib/commons-vfs-1.0-RC2.jar;ext-lib/jakar
ta-oro-2.0.8.jar;ext-lib/jcifs-1.2.1.jar;ext-lib/jsch-0.
1.21.jar;log4j-1.3alpha-7.jar;log4j-chainsaw-1.3alpha-7.jar;ugli-simple.
jar;log4j-xml.jar;log4j-optional.jar;log4j-oro.jar
org.apache.log4j.chainsaw.LogUI
Using font=Arial
*** configurationOptionStr=null
** End of LogManager static initializer
log4j:INFO Creating new logger [org.apache.log4j.chainsaw.LogUI] in
repository [default].
log4j:INFO Creating new logger
[org.apache.log4j.chainsaw.plugins.PluginClassLoaderFactory] in
repository [default].
log4j:INFO Returning existing logger [org.apache.log4j] in repository
[default].
log4j:INFO Creating new logger
[org.apache.log4j.joran.action.ConfigurationAction] in repository
[default].
0 [main] ERROR org.apache.log4j.varia.ListAppender - Attempted to log
with inactive appender named [TEMP_LIST_APPENDER].
LOG4J-INTERNAL: 2005-07-19 06:19:06,052 DEBUG [main]
org.apache.log4j.joran.action.ConfigurationAction#begin:42)- Starting
internal logs on console.
log4j:INFO Creating new logger
[org.apache.log4j.joran.action.AppenderAction] in repository [default].
16 [main] ERROR org.apache.log4j.varia.ListAppender - Attempted to log
with inactive appender named [TEMP_LIST_APPENDER].
LOG4J-INTERNAL: 2005-07-19 06:19:06,083 DEBUG [main]
org.apache.log4j.joran.action.AppenderAction#begin:52)- About to
instantiate appender of type [org.apache.log4j.ConsoleAppender]
16 [main] ERROR org.apache.log4j.varia.ListAppender - Attempted to log
with inactive appender named [TEMP_LIST_APPENDER].
LOG4J-INTERNAL: 2005-07-19 06:19:06,083 DEBUG [main]
org.apache.log4j.joran.action.AppenderAction#begin:67)- Appender named
as [A2]
LOG4J-INTERNAL: 2005-07-19 06:19:06,083 DEBUG [main]
org.apache.log4j.joran.action.AppenderAction#begin:78)- Pushing appender
on to the object stack.
log4j:INFO Creating new logger
[org.apache.log4j.joran.action.LayoutAction] in repository [default].
LOG4J-INTERNAL: 2005-07-19 06:19:06,099 DEBUG [main]
org.apache.log4j.joran.action.LayoutAction#begin:45)- About to
instantiate layout of type [org.apache.log4j.SimpleLayout]
LOG4J-INTERNAL: 2005-07-19 06:19:06,099 DEBUG [main]
org.apache.log4j.joran.action.LayoutAction#begin:56)- Pushing layout on
top of the object stack.
LOG4J-INTERNAL: 2005-07-19 06:19:06,114 DEBUG [main]
org.apache.log4j.joran.action.LayoutAction#end:86)- Popping layout from
the object stack
LOG4J-INTERNAL: 2005-07-19 06:19:06,114 DEBUG [main]
org.apache.log4j.joran.action.LayoutAction#end:90)- About to set the
layout of the containing appender.
LOG4J-INTERNAL: 2005-07-19 06:19:06,114 DEBUG [main]
org.apache.log4j.joran.action.AppenderAction#end:110)- Popping appender
named [A2] from the object stack
log4j:INFO Creating new logger
[org.apache.log4j.joran.action.PluginAction] in repository [default].
LOG4J-INTERNAL: 2005-07-19 06:19:06,114 DEBUG [main]
org.apache.log4j.joran.action.PluginAction#begin:44)- About to
instantiate plugin of type
[org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver]

LOG4J-INTERNAL: 2005-07-19 06:19:06,145 DEBUG [main]
org.apache.log4j.joran.action.PluginAction#begin:58)- plugin named as
[ssh-example]
LOG4J-INTERNAL: 2005-07-19 06:19:06,161 DEBUG [main]
org.apache.log4j.joran.action.PluginAction#begin:66)- Pushing plugin on
to the object stack.
log4j:INFO Creating new logger
[org.apache.log4j.joran.action.ParamAction] in repository [default].
LOG4J-INTERNAL: 2005-07-19 06:19:06,161 DEBUG [main]
org.apache.log4j.joran.action.ParamAction#begin:61)- In ParamAction
setting parameter [fileURL] to value
[sftp://myusername:password@hostname:22/path/to/server.log]. --> WAS
CHANGED FOR SECURITY REASONS AFTER THE PRINTOUT...
LOG4J-INTERNAL: 2005-07-19 06:19:06,177 DEBUG [main]
org.apache.log4j.joran.action.ParamAction#begin:61)- In ParamAction
setting parameter [timestampFormat] to value [dd-MM-yyyy HH:mm:ss,SSS].
LOG4J-INTERNAL: 2005-07-19 06:19:06,192 DEBUG [main]
org.apache.log4j.joran.action.ParamAction#begin:61)- In ParamAction
setting parameter [logFormat] to value [TIMESTAMP LOGGER LEVEL [THREAD]
- MESSA
GE].
LOG4J-INTERNAL: 2005-07-19 06:19:06,192 DEBUG [main]
org.apache.log4j.joran.action.ParamAction#begin:61)- In ParamAction
setting parameter [tailing] to value [true].
LOG4J-INTERNAL: 2005-07-19 06:19:06,208 DEBUG [main]
org.apache.log4j.joran.action.PluginAction#end:98)- Popping plugin named
[ssh-example] from the object stack
log4j:INFO Creating new logger
[org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver] in repository
[default].
log4j:INFO Creating new logger
[org.apache.log4j.joran.action.RootLoggerAction] in repository
[default].
LOG4J-INTERNAL: 2005-07-19 06:19:06,255 DEBUG [Thread-2]
org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver#initialize:604)-
regexp is (\w+-\w+-\w+ \w+:\w+:\w+,\w+) (.+?) (.+?) \[(.+?)\] - (.+)
LOG4J-INTERNAL: 2005-07-19 06:19:06,255 DEBUG [main]
org.apache.log4j.joran.action.RootLoggerAction#begin:43)- Pushing root
logger on stack
log4j:INFO Creating new logger
[org.apache.log4j.joran.action.LevelAction] in repository [default].
LOG4J-INTERNAL: 2005-07-19 06:19:06,270 INFO [Thread-2]
org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver#run:140)-
attempting to load file:
sftp://myusername:password@hostname:22/path/to/server.log --> WAS
CHANGED FOR SECURITY REASONS AFTER THE PRINTOUT...
LOG4J-INTERNAL: 2005-07-19 06:19:06,270 DEBUG [main]
org.apache.log4j.joran.action.LevelAction#begin:45)- Encapsulating
logger name is [root], levelvalue is  [debug].
LOG4J-INTERNAL: 2005-07-19 06:19:06,286 DEBUG [main]
org.apache.log4j.joran.action.LevelAction#begin:76)- root level set to
DEBUG
LOG4J-INTERNAL: 2005-07-19 06:19:06,302 DEBUG [main]
org.apache.log4j.joran.action.RootLoggerAction#end:61)- Removing root
logger from top of stack.
LOG4J-INTERNAL: 2005-07-19 06:19:06,302 DEBUG [main]
org.apache.log4j.joran.action.ConfigurationAction#end:49)- Will stop
writing internal logs on console.
log4j:INFO Returning existing logger [org.apache.log4j] in repository
[default].
log4j:INFO Creating new logger
[org.apache.log4j.joran.JoranConfigurator] in repository [default].
log4j:INFO Returning existing logger [org.apache.log4j] in repository
[default].
log4j:INFO Creating new logger
[org.apache.commons.vfs.impl.StandardFileSystemManager] in repository
[default].
log4j:INFO Creating new logger
[org.apache.commons.vfs.impl.DefaultFileReplicator] in repository
[default].
log4j:INFO Creating new logger
[org.apache.commons.vfs.cache.SoftRefFilesCache] in repository
[default].
log4j:INFO Creating new logger [org.apache.log4j.ConsoleAppender] in
repository [default].
log4j:INFO Creating new logger
[org.apache.log4j.chainsaw.help.HelpLocator] in repository [default].
log4j:INFO Creating new logger
[org.apache.log4j.chainsaw.help.HelpManager] in repository [default].
log4j:INFO Creating new logger
[org.apache.log4j.chainsaw.receivers.ReceiversHelper] in repository
[default].
log4j:INFO Creating new logger
[org.apache.log4j.chainsaw.receivers.PluginPropertyEditorPanel] in
repository [default].
log4j:INFO Creating new logger
[org.apache.log4j.chainsaw.receivers.ReceiversPanel] in repository
[default].
log4j:INFO Creating new logger
[org.apache.log4j.chainsaw.receivers.ReceiversTreeModel] in repository
[default].
log4j:INFO Creating new logger
[org.apache.log4j.chainsaw.icons.LineIconFactory] in repository
[default].
log4j:INFO Creating new logger
[org.apache.log4j.chainsaw.FileLoadAction] in repository [default].
log4j:INFO Creating new logger [org.apache.log4j.xml.SAXErrorHandler] in
repository [default].
log4j:INFO Returning existing logger
[org.apache.log4j.xml.SAXErrorHandler] in repository [default].
log4j:INFO Returning existing logger
[org.apache.log4j.xml.SAXErrorHandler] in repository [default].
log4j:INFO Returning existing logger
[org.apache.log4j.xml.SAXErrorHandler] in repository [default].
log4j:INFO Creating new logger
[org.apache.log4j.chainsaw.dnd.FileDnDTarget] in repository [default].
log4j:INFO Creating new logger
[org.apache.log4j.chainsaw.ApplicationPreferenceModelPanel] in
repository [default].
log4j:INFO Creating new logger
[org.apache.log4j.chainsaw.messages.MessageCenter] in repository
[default].
log4j:INFO Creating new logger
[org.apache.log4j.chainsaw.vfs.DirectoryListTableModel] in repository
[default].
log4j:INFO Creating new logger [org.apache.log4j.chainsaw.vfs.VFSPlugin]
in repository [default].
log4j:INFO Creating new logger
[org.apache.commons.vfs.provider.AbstractFileSystem] in repository
[default].
1516 [main] ERROR org.apache.log4j.varia.ListModelAppender - Attempted
to log with inactive appender named [null].
1516 [main] ERROR org.apache.log4j.chainsaw.LogUI$12 - Attempted to log
with inactive appender named [null].
1516 [main] ERROR org.apache.log4j.varia.ListModelAppender - Attempted
to log with inactive appender named [null].
1532 [main] ERROR org.apache.log4j.chainsaw.LogUI$12 - Attempted to log
with inactive appender named [null].
1532 [main] ERROR org.apache.log4j.varia.ListModelAppender - Attempted
to log with inactive appender named [null].
1532 [main] ERROR org.apache.log4j.chainsaw.LogUI$12 - Attempted to log
with inactive appender named [null].
Wanting to add a row, but GUI not initialized, waiting...
log4j:INFO Creating new logger
[org.apache.log4j.chainsaw.LogPanelPreferenceModel] in repository
[default].
log4j:INFO Creating new logger [org.apache.log4j.chainsaw.LogPanel] in
repository [default].
log4j:INFO Creating new logger
[org.apache.log4j.chainsaw.ChainsawCyclicBufferTableModel] in repository
[default].
log4j:INFO Creating new logger
[org.apache.log4j.chainsaw.LogPanelLoggerTreeModel] in repository
[default].
log4j:INFO Creating new logger
[org.apache.log4j.chainsaw.LoggerNameTreePanel] in repository [default].
log4j:INFO Creating new logger [com.mycompany.mylogger] in repository
[default].
===========

Any ideas?

Best regards, :)
 
           Rami
 
 
 
~~~~~~~~~~~~~~~~~~
Rami Abramson
SharedBook
Tel. 09-9579915 (ext. 117)
rabramson@sharedbook.com
 

-----Original Message-----
From: Scott Deboy [mailto:sdeboy@comotivsystems.com] 
Sent: Sunday, July 17, 2005 11:14 PM
To: Log4J Users List
Subject: RE: viewing remote logfile over SSH using Chainsaw

The host needs to be in known_hosts (on windows, I think it's
userhome/.ssh/known_hosts) - the jsch docs should provide more info)

Scott

-----Original Message-----
From:	Jacob Kjome [mailto:hoju@visi.com]
Sent:	Sun 7/17/2005 10:23 AM
To:	Log4J Users List
Cc:	
Subject:	Re: viewing remote logfile over SSH using Chainsaw

Can we assume that you have all the required libraries to enable SFTP 
functionality in commons-vfs?  See:
http://jakarta.apache.org/commons/vfs/download.html

You need at least....

common-vfs.jar
commons-logging.jar
jsch.jar

The first two are required dependencies for commons-vfs to work at 
all.  The 3rd, jsch, is a runtime dependency that you use to enable SFTP

functionality in commons-vfs.

Jake

At 07:47 PM 7/17/2005 +0300, you wrote:
 >
 >Hello all,
 >
 >We are trying to view remote logs over SSH using Chainsaw v2.
 >We added the required jars to the chainsaw.bat file so it uses the
 >VFSLogFilePatternReceiver .
 >The chainsaw seems to launch fine, and the correct receiver (specified
 >below) is loaded, yet a new chainsaw tab with the requested file is
not
 >opened.
 >
 >The reciever's definition is (of course these are not the real user,
 >password and file-path):
 >===========================
 >  <plugin name="ssh-example"
 >class="org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver">
 >    <param name="fileURL"
 >value="sftp://myusername:password@hostname:22/path/to/server.log" />
 >    <param name="timestampFormat" value="dd-MM-yyyy HH:mm:ss,SSS"/>
 >    <param name="logFormat" value="TIMESTAMP LOGGER LEVEL [THREAD] -
 >MESSAGE" />
 >    <param name="tailing" value="true" />
 >  </plugin>
 >===========================
 >
 >Using a different SSH tool we verified that the URL is valid and that
 >the file is transferred over sftp.
 >
 >What are we missing?
 >
 >Best regards,
 >
 >          Yaniv & Rami
 >
 >
 >
 >---------------------------------------------------------------------
 >To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
 >For additional commands, e-mail: log4j-user-help@logging.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org






---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message