API Connect

 View Only
  • 1.  Add custom attribute in Analytics

    Posted Wed May 10, 2023 04:23 PM

    I am using custom security. I send request in API Connect to backend server. I want to hide cookie and authorization from response.

    First, not sure the response header includes all values from request header, which is security breach. So i had to add javascript to explicitly remove header values for authorization andx-api-key.

    Second, i woul like add backend server name in analytics, to help in troubleshooting, but not include server name in response header. Is that feasible 

    I am using 2018



    ------------------------------
    Sam IBMer
    ------------------------------


  • 2.  RE: Add custom attribute in Analytics

    Posted Thu May 11, 2023 03:06 AM

    I am afraid support for APIC v2018 has now ended. I strongly advise you to upgrade to APIC 10.0.5 immediately.

    Adding custom data to analytics is possible in 10.0.5 but that process will not work in v2018.



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



  • 3.  RE: Add custom attribute in Analytics

    Posted Sun February 18, 2024 08:56 AM

    Hi everyone (Chris)...

    Found this old thread - an we are curious as well :)

    We are on 10.0.5 and have not found a way to add custom data from our gateway scripts to analytics.. We are probably blind when it comes to read through the documentation, he he.. 

    Any help on where to find some information would be wonderful.

    Thanks in advance.



    ------------------------------
    Team API
    ------------------------------



  • 4.  RE: Add custom attribute in Analytics

    Posted Sun February 18, 2024 09:10 AM

    Hiya,

    Its pretty simple using gatewayscript, have a look at the doc page here:
    Modifying analytics API event data

    Ibm remove preview
    Modifying analytics API event data
    How to modify API event data before it is stored.
    View this on Ibm >

    Just make sure you add the custom data inside the custom_data object, otherwise it will not be indexed or searchable in analytics.

    Cheers,

    Chris



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