1 - APIM - Development - Policy Studio - Error Management
1 - APIM - Development - Policy Studio - Error Management
Error management
#axway
Welcome To Our Presentation
Error management
2
Welcome To Our Presentation
Error management
Alerts
Audit trail
3
Out of the box features
4
Out of the box features
• There are lots of features provided
for monitoring and error detections
• No or little configuration
required
5
Monitoring: API Gateway Manager
• 3 possible transaction and status
• Passed
• Blocked
• Exception
6
Troubleshoot: API Gateway Manager
• All transactions detail available for
troubleshooting
7
Logging: API Gateway Manager/ File system
• Multiple aspects of logging provided
• Domain Audit:
domain changes (i.e. infrastructure)
• Transaction Audit Log:
transaction audit trail (i.e. processing)
• Transaction Access log:
summary of the HTTP request/response
• Transaction Event log:
detailed transaction information, used by 3rd party
• Open logging:
detailed information, similar to traffic monitor
• Traces:
instances low level traces
8
Operational intelligence: Embedded Analytics
• Detect error in real time using
Embedded Analytics dashboards
9
Get service and subject from policy
• In Traffic transaction list, there are
"Service" and "Subject" columns
10
Set correct information to Embedded Analytics with policy
• Execute tasks described here
• Service context
• soap.request.method attribute
• ADI route configuration
11
Policy and error
management
12
Reminder: Policy Edition and Design
• Policies are composed of filters
• Policies can also be referenced as “circuit”
14
Simple example: virtualization
• To be very clear, let's take a simple
virtualization example
• "Connect to URL" to a backend
service
• Policy exposed on HTTP
"/myapi"
15
Implicit output
Equivalent to
Following outputs
Have following
status
17
Error handler
• Error handler is a catcher for
"Failure" path and "Exception" path
• If a step finish "Failure" or
"Exception'
Mechanism is recursive
19
"Fault handlers" filter menu
Generate error message
Consider it as default
Not much used, as custom
error messages are preferred
Put transaction id in it
20
Error management: example of good practice
22
Alert filter
• Send notifications to 3rd party with many different
connectors
• Twitter
• Syslog (remote/local)
• Email
• SNMP
• OPSEC
• AWS SNS
• Window Event Log
23
Alert filter
25
Alert and API Gateway Manager
• The different kind of alerts are
visible in API Gateway Manager
• Transaction audit
• Alerts
• SLA Alerts
26
Note: Alerts in API Manager
• Note the same concept
• "Events" word concept is more matching
the concept
27
Audit trail
28
Transaction Audit Log = transaction audit trail (i.e. processing)
29
Transaction Audit Log - consistency with Traffic Monitor
Transaction Audit Message displayed in Traffic Monitor…
Traffic Monitor
30
Transaction Audit Log - configuration
Destinations
Activate
destination
Destination
configuration
Message written
Signature
Configuration
location
31
Transaction Audit Log - configuration - more details
Possible destinations
Format
32
Filter Transaction Audit panel - The Next button
All filters have a second tab for Transaction Audit Log configuration.
34
Wrap-up
• AMPLIFY API Management provides already all the monitoring features
• But only developer can define what is "normal" and what is error - leveraging
paths and handler
• Thinks about "Transaction Audit Log" if you need an audit trail
35
Thank you!
36