Cloud Pak for Integration

 View Only
  • 1.  Application level logging with CP4I

    Posted Tue May 18, 2021 09:43 PM
    From CP4I 2020.4.1 onwards,  cloud pak logging is now integrated with Openshift cluster-logging running on EFK.

    We are trying to determine what is the best practice for ACE application logging.  This may be applicable to other CP4I capabilities as well.

    a) the standard approach is to use stdout and stderr with Openshift cluster-logging however, the current trace node and the LOG statement do not have this ability AFAIK.

    b) RYO stdout and stderr log writer in java or use a logging library like log4j.

    c) should we even consider integrating with Openshift cluster-logging - this looks like a logical choice to us. 

    Please share your thoughts.


    ------------------------------
    Regards
    Colin Lim
    ------------------------------


  • 2.  RE: Application level logging with CP4I

    IBM TechXchange Speaker
    Posted Wed May 19, 2021 07:16 AM
    Edited by James Hewitt Wed May 19, 2021 07:18 AM
    This might get more attention in the ACE topic group.

    From a CP4I perspective, nothing has changed in how logs are picked up from containers in the 2020.4.1 release, previously we used the IBM Common Services logging stack which picked up stdout and stderr in the same way as the OpenShift EFK stack does in 2020.4.1 and above. This approach fits with the CP4I objective of being Kubernetes Native, its the industry standard way of collecting logs from running containers.

    So, I would say definitely you want to be looking at integrating with Openshift cluster-logging, and doing that in a Kubernetes way, by using stdout and stderr. I wouldn't expect you to need to create your own log writer.

    For a trace node, you can use a file output and set the file as /dev/stdout or /dev/stderr and that will be indexed by the EFK stack. I'm not sure about the LOG statement. For either of them, it might be worth raising an idea in AHA to ask that the LOG statement and TRACE node support kubernetes native log output (stdout/stderr).

    ------------------------------
    James Hewitt
    ------------------------------