You can write a registry handler (for the api artifact type) to capture API
additions, removals and updates.

On Thu, Oct 27, 2016 at 3:52 PM, Thilini Cooray <[email protected]> wrote:

> Hi Jo,
>
> Since AM_API table does not contain fields to capture user details in APIM
> 1.7, AFAIU we would need a code level modification to it.
> WDYT?
> ATM I only limited to fields available in AM_API table due to it.
>
> Thanks.
>
> On Thu, Oct 27, 2016 at 3:38 PM, Joseph Fonseka <[email protected]> wrote:
>
>> Hi
>>
>> I guess you would need to capture user details as well for an audit log
>> entry. Do you have a plan on getting the user data at db level.
>>
>> Thanks
>> Jo
>>
>> On Thu, Oct 27, 2016 at 3:27 PM, Thilini Cooray <[email protected]>
>> wrote:
>>
>>> Hi Uvindra,
>>>
>>> Details in AM_API will be enough for the audit log.
>>> If we want to capture lifecycle state details I understand that we need
>>> to look at registry resources as well.
>>>
>>> Thanks.
>>>
>>> On Thu, Oct 27, 2016 at 3:21 PM, Uvindra Dias Jayasinha <
>>> [email protected]> wrote:
>>>
>>>> HI Thilini,
>>>>
>>>> If all you want to check is when an API is added or deleted then the
>>>> same approach of using trigger for AM_API table is enough. But what
>>>> information exactly do you need to collect for the audit?
>>>>
>>>> On 27 October 2016 at 14:23, Thilini Cooray <[email protected]> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> APIM 1.7 does not support audit logs for operations such as API
>>>>> creation and deletion, application creation and deletion.
>>>>> I am looking for alternatives which can be used for collecting audit
>>>>> data.
>>>>>
>>>>> Since application data are only stored in AM_DB, we can collect
>>>>> application related audit data by adding a database trigger for
>>>>> AM_APPLICATION table.
>>>>>
>>>>> However, API details are stored in both AM_DB and Registry DB.
>>>>> Therefore what is the recommended way for collecting audit data for
>>>>> API creation and deletion?
>>>>>
>>>>> Will it be reliable enough to just add a database trigger for AM_API
>>>>> table for insertions and deletions ?
>>>>>
>>>>> Thanks.
>>>>>
>>>>> --
>>>>> Best Regards,
>>>>>
>>>>> *Thilini Cooray*
>>>>> Software Engineer
>>>>> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20774%20570112>
>>>>> E-mail : [email protected]
>>>>>
>>>>> WSO2 Inc. www.wso2.com
>>>>> lean.enterprise.middleware
>>>>>
>>>>> _______________________________________________
>>>>> Dev mailing list
>>>>> [email protected]
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>> Uvindra
>>>>
>>>> Mobile: 777733962
>>>>
>>>
>>>
>>>
>>> --
>>> Best Regards,
>>>
>>> *Thilini Cooray*
>>> Software Engineer
>>> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20774%20570112>
>>> E-mail : [email protected]
>>>
>>> WSO2 Inc. www.wso2.com
>>> lean.enterprise.middleware
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> --
>> *Joseph Fonseka*
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 772 512 430
>> skype: jpfonseka
>>
>> * <http://lk.linkedin.com/in/rumeshbandara>*
>>
>>
>
>
> --
> Best Regards,
>
> *Thilini Cooray*
> Software Engineer
> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20774%20570112>
> E-mail : [email protected]
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nuwan Dias

Software Architect - WSO2, Inc. http://wso2.com
email : [email protected]
Phone : +94 777 775 729
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to