Layer7 API Management

 View Only
  • 1.  how to modify the log level kubernetes stdout in API gateways 10.1.0

    Posted Mar 02, 2022 11:55 AM
    Edited by carlospimentel Mar 02, 2022 12:05 PM

    HI all ,

    I am trying to modify the log level of what is send in the stdout of the container.

    I have the API gateways 10.1 running in Kubernetes.

    I got fluent-bit as deamonset capturing the stdout logs of the container. but is seen to be that policies are writing over 500 lines of logs.

    I have tried to applying a configmap with the example here:

    apim-charts/values.yaml at 10c3564a266b07cff07c875a0e9b82d81adf93b6 · CAAPIM/apim-charts

    Enriched Logging in JSON Format

    but I can only manage is to change the format of the logs to json, changing the value to SEVERE doesn't seen to make any effect.

    I have also trying the CWP. 

    log.levels

    with the values

    com.l7tech.level = CONFIG
    com.l7tech.server.policy.variable.ServerVariables.level = SEVERE
    com.l7tech.external.assertions.odata.server.producer.jdbc.GenerateSqlQuery.level = SEVERE
    com.l7tech.server.policy.assertion.ServerSetVariableAssertion.level = SEVERE
    com.l7tech.external.assertions.comparison.server.ServerComparisonAssertion = SEVERE

    and also

    log.stdoutLevel = SEVERE

    and nothing  take effect

    If you have any suggestion please let me know. 

    Every time I do a change I restart the API gateways and check that the new values are there. 

    Thank you

    Carlos



  • 2.  RE: how to modify the log level kubernetes stdout in API gateways 10.1.0

    Posted Feb 07, 2024 12:56 PM

    Were you able to solve this problem? 




  • 3.  RE: how to modify the log level kubernetes stdout in API gateways 10.1.0

    Broadcom Employee
    Posted Feb 07, 2024 01:02 PM

    Hello Lalit,


    You should be able to set the log level with this system.property.

    Regards,



    ------------------------------
    Ben Urbanski
    Product Manager, API Gateway
    Layer7 API Management
    ------------------------------



  • 4.  RE: how to modify the log level kubernetes stdout in API gateways 10.1.0

    Posted Feb 08, 2024 02:46 AM

    HI Lalit,

    We sorted the issue in fluent-bit applying filters to the logs before is been send to our log platform.
    Also in the api side the logging part was also reduce, and with the possibility to trigger maximum logging when needed. 

    At the time I tested this about two years ago, the change in CWP never took effect.



    ------------------------------
    Carlos Alberto Pimentel NAvarro
    Cloud/System Engineer
    William hill
    https://www.williamhill.com
    ------------------------------