WebSphere Application Server & Liberty

 View Only
  • 1.  logViewer for WAS on IBM i

    Posted Tue December 13, 2022 11:57 AM
    Good day:

    Does anyone knows where is the logViewer.sh file located on WAS on IBM i, if there is one?  Is there a way of using logViewer remotely from a Linux machine against IBM i installed WAS?

    Thank you so much.

    ------------------------------
    Daniel Jose Lema Guanziroli
    ------------------------------


  • 2.  RE: logViewer for WAS on IBM i
    Best Answer

    Posted Mon December 19, 2022 07:58 PM
    Hi Daniel.  On the IBM i platform, the command is called logViewer (no .sh extension) and it lives in the bin directory off of the WAS profile root location (ex: /QIBM/UserData/WebSphere/AppServer/<version>/<edition>/profiles/server1/bin/logViewer).

    As far as I can tell, logViewer is only run as a local command on the IBM i system and cannot act as a client to a remote system. From your Linux system, you could connect to your IBM i system via ssh and run the logViewer command that way.

    For more information on using logViewer, please reference the following logViewer pages for WAS85 and WAS90 (respectively):

    Version 85 -> https://www.ibm.com/docs/en/was/8.5.5?topic=applications-logviewer-command-line-tool

    Version 90 -> https://www.ibm.com/docs/en/was/9.0.5?topic=applications-logviewer-command-line-tool

    ------------------------------
    Greg Watts
    ------------------------------



  • 3.  RE: logViewer for WAS on IBM i

    Posted Wed December 28, 2022 01:49 PM
    Hi Daniel,

    One possibility is that you could write your logs to a local, but shared directory on your IBM i machine, then use the logViewer command on your Linux machine with the -repositoryDir option to read from that shared directory.  Note that it's better not to write your logs directly to a remote filesystem as that could cause latency when writing your logs/trace which could slow down threads that are logging/tracing in your server.

    ------------------------------
    Don Bourne
    WebSphere Observability Architect
    ------------------------------



  • 4.  RE: logViewer for WAS on IBM i

    Posted Thu December 29, 2022 08:07 AM
    Thank you very much:

    What I am doing is using logViewer on the IBM i directly (after a while I could understand the small differences between Linux and qshell) and connecting from a Linux using sshfs and using filebeat to feed these logs to Elastic.

    Your proposal of using logViewer in Linux instead of running it from IBM i, sounds very practical, given that it will allows my team to be responsible for it to be up and running, instead of having to split that responsibility with IBM i administrators <-- that's more a practical point that may not apply to other shops.

    ------------------------------
    Daniel Jose Lema Guanziroli
    ------------------------------



  • 5.  RE: logViewer for WAS on IBM i

    Posted Thu December 29, 2022 09:32 AM
    > What I am doing is using logViewer on the IBM i directly (after a while I could understand the small differences between Linux and qshell) and connecting from a Linux using sshfs and using filebeat to feed these logs to Elastic.

    A while back we created a blog covering the basics of using WAS with filebeat / Elastic -- if you haven't seen this yet, it could help...

    https://community.ibm.com/community/user/integration/blogs/kirby-chin1/2020/01/03/centralized-logging-with-was-traditional

    ------------------------------
    Don Bourne
    WebSphere Observability Architect
    ------------------------------