API Connect

API Connect

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#API Connect
#Applicationintegration
#APIConnect
 View Only
  • 1.  Logging in APIC

    Posted 09/25/24 10:19 AM

    What is the difference between Gather-Only, Send-Only & Gather-and-Send modes in Log Policy in API Connect?



    ------------------------------
    Nirmalya Mukherjee
    ------------------------------


  • 2.  RE: Logging in APIC

    Posted 09/26/24 03:11 AM

    Gather is about populating the event log variable in the assembly flow, so that you can then customise it in some way.
    Send is about transmitting that data to analytics.

    The data is automatically sent to analytics at the end of the assembly flow without even having a Log policy in send mode, so chances are you dont want to do Send, since it will lead to double accounting in analytics.

    Here's an example of how to use the Log policy to customise the data sent to analytics: https://www.ibm.com/docs/en/api-connect/10.0.8?topic=data-customizing-gateway-script-set-variable-operation

    Note: if adding custom data to the event log record send to analytics, please do it within the custom_data object otherwise you won't be able to query for that data via the Analytics UI/API.



    ------------------------------
    Chris Dudley
    ------------------------------



  • 3.  RE: Logging in APIC

    Posted 09/26/24 05:16 AM

    okay.. but when I tried with Gather-Only, Gather-and-Send mode I can see the details in analytics log. However, the call is not being logged when Send-Only option is selected



    ------------------------------
    Nirmalya Mukherjee
    ------------------------------



  • 4.  RE: Logging in APIC

    Posted 09/26/24 05:28 AM

    Because if you just do Send then there is nothing to send if you havent populated the variable first with a Gather Log policy.

    Remember you can have multiple instances of a given policy in a flow.



    ------------------------------
    Chris Dudley
    ------------------------------