6 Replies Latest reply on Jan 27, 2005 3:06 PM by gshekar

    Please brief me the steps involved in using chainsaw to view

    gshekar

      Hi,

      I am running jboss 4.0.1 on solaris 8. Want to use chainsaw to view jboss logs from my laptop.

      Please brief me the steps involved in doing this.
      Thanks & Regards,
      -GnanaShekar-

        • 1. Re: Please brief me the steps involved in using chainsaw to
          gshekar

          Hi,

          After finding how to use Chainsaw, thought posting the steps might be be useful for others.

          It was possible with SocketHubAppender and SocketHubReceiver.
          I haved added the following configuration section for SocketHubAppender in ${JBOSS_HOME}/server/default/conf/log4j.xml. Also I have configured the root category for SocketHubAppender.

          <!-- ============================= -->
          <!-- Append messages to the socket -->
          <!-- ============================= -->





          .
          .
          .
          .
          .

          <appender-ref ref="SOCKET"/>
          <appender-ref ref="CONSOLE"/>
          <appender-ref ref="FILE"/>


          We can now configure a SocketHubReceiver in Chainsaw on our laptop to connect to the Jboss logs running on some unix server on port 8888.

          • 2. Re: Please brief me the steps involved in using chainsaw to
            gshekar

            I don't know whey the xml is getting ripped when I post the reply. Trying to comment the xml stuff and post.

            <!-- ============================= -->
            <!-- Append messages to the socket -->
            <!-- =============================





            .
            .
            .
            .
            .

            <appender-ref ref="SOCKET"/>
            <appender-ref ref="CONSOLE"/>
            <appender-ref ref="FILE"/>
            -->

            • 3. Re: Please brief me the steps involved in using chainsaw to
              gshekar

              I don't know whey the xml is getting ripped when I post the reply. Disabling BBCode in this post.

              <!-- ============================= -->
              <!-- Append messages to the socket -->
              <!-- ============================= -->





              .
              .
              .
              .
              .

              <appender-ref ref="SOCKET"/>
              <appender-ref ref="CONSOLE"/>
              <appender-ref ref="FILE"/>

              • 4. Re: Please brief me the steps involved in using chainsaw to
                gshekar

                Sorry... I don't know how to post the XML in message body.

                • 5. Re: Please brief me the steps involved in using chainsaw to
                  sysuser1

                  use code tags like [ c o d e ] <your xml> [ / c o d e] so it will look like

                  <your xml>
                  


                  I used spaces so that you can see the text... you can preview your posting before submitting

                  HTH

                  VM

                  • 6. Re: Please brief me the steps involved in using chainsaw to
                    gshekar

                     

                    <!-- ============================= -->
                     <!-- Append messages to the socket -->
                     <!-- ============================= -->
                    
                     <appender name="SOCKET" class="org.apache.log4j.net.SocketHubAppender">
                     <param name="Port" value="8888"/>
                     <param name="Threshold" value="INFO"/>
                     </appender>
                     .
                     .
                     .
                     .
                     .
                     <root>
                     <appender-ref ref="SOCKET"/>
                     <appender-ref ref="CONSOLE"/>
                     <appender-ref ref="FILE"/>
                     </root>