Friday, October 8, 2021

#885 Surfacing OIC Design Time audit logs in OCI Logging Analytics

 The use case here is customer needs to see what is happening in respect of integration activation and deactivation.






The basis is the OIC Design Time Audit Log - visible in OIC Monitoring -


Note the action column values, activate, deactivate etc. Currently OIC does not push this log to OCI Logging, so the quick workaround here is to leverage the OIC REST api to retrieve the design time audit data - 








OIC REST API docs available here

I try this out in Postman, to get the response payload - 



Next step is to create a REST connection in OIC to OIC itself. 














This I then invoke from a Scheduled Orchestration - 















The logic, as you can very well see, is very simple. Just log all activate and deactivate messages.

Log Action is configured as follows - 


I then activate this integration, with tracing not enabled -


This will ensure only the LOG action messages are written to the OIC Activity Stream log.

Now to OCI Logging Analytics - note, I have already done the setup here for processing the OIC Activity Stream logs.

I open Log Explorer and configure the query as follows - 







OIC_AS_IntegrationFlowIdentifier = 'AA_OIC_AUDITLOG!01.00.0000' | fields -Entity, -'Entity Type', -'Log Source', -'Host Name (Server)', -'Problem Priority', -Label, -OIC_AS_IntegrationFlowIdentifier, OIC_AS_Message as 'Activation-Deactivation Messages'

OIC_AS_IntegrationFlowIdentifier and OIC_AS_Message are fields I have already defined in OCI Logging Analytics. Check out my previous posts here for details of OIC Activity Stream setup in OCI Logging Analytics.

I then save this to my OIC Dashboard - that's it. 
Very simple, very succinct!
 

No comments:

Post a Comment