The operation logs of Network Load Balancer (NLB) record the operations that are performed on NLB instances by calling API operations or using the NLB console.
NLB is integrated with ActionTrail. In the ActionTrail console, you can query the management events that are generated when you manage NLB resources. ActionTrail can deliver management events to Logstores in Simple Log Service or Object Storage Service (OSS) buckets. This way, you can audit the events in real time and identify the causes of issues.
View operation logs
In the NLB console, you can only view log records generated for your account in a single region within the past 90 days. Only one filter condition can be set to filter query results. If you require log records across multiple accounts or regions for a longer period, or need to set multiple filter conditions or run custom SQL statements to filter query results, create trails and configure ActionTrail to deliver events to specific Alibaba Cloud services. Then, use the advanced event query feature of ActionTrail to view the log records.
Log on to the NLB console.
In the left-side navigation pane, choose NLB > Operation Log.
In the top navigation bar, select a region.
On the Operation Log page, set a filter condition and specify a period to filter the required log records.
Filter conditions include Read/Write Type, Event Name, Operator, Resource Type, Resource Name, Event Type, and Sensitive Action.
In the records list displayed, find the event you want to view, click View Details in the Actions column, and view the event details and code record on the displayed panel.
NoteFor more information about event fields, see Management event structure.
NLB audit events
Event name | Description |
GetGlobalLoadBalancerSummary | Queries statistics about NLB. |
Create | Purchases NLB on the buy page. |
Release | Releases a resource such as an instance. |
DisableLoadBalancerIpv6Internet | Changes the network type of an NLB instance from public IPv6 to private IPv6. |
EnableLoadBalancerIpv6Internet | Changes the network type of an NLB instance from private IPv6 to public IPv6. |
DetachCommonBandwidthPackageFromLoadBalancer | Disassociates an elastic IP address (EIP) bandwidth plan from an NLB instance. |
StopListener | Disables a listener. |
CreateLoadBalancer | Creates an NLB instance. |
CreateServerGroup | Creates a server group. |
CreateListener | Creates a listener. |
CreateSecurityPolicy | Creates a custom security policy. |
DeleteSecurityPolicy | Deletes a security policy. |
DeleteServerGroup | Deletes a server group. |
DeleteListener | Deletes a listener. |
DeleteLoadBalancer | Deletes an NLB instance. |
UntagResources | Removes tags from resources. |
UpdateLoadBalancerAddressTypeConfig | Changes the network type. |
StartListener | Enables a listener. |
UpdateLoadBalancerProtection | Modifies deletion protection settings. |
UpdateServerGroupServersAttribute | Modifies the configurations of backend servers. |
UpdateSecurityPolicyAttribute | Modifies the attributes of a security policy. |
UpdateServerGroupAttribute | Modifies the configurations of a server group. |
UpdateListenerAttribute | Modifies the configurations of a listener. |
UpdateLoadBalancerZones | Modifies the zones of an NLB instance. |
UpdateLoadBalancerAttribute | Modifies the attributes of an NLB instance. |
ListListenerCertificates | Queries the certificates of a listener that uses SSL over TCP. |
DescribeZones | Queries zones. |
ListServerGroupServers | Queries backend servers. |
DescribeRegions | Queries regions. |
ListSecurityPolicy | Queries a security policy. |
GetJobStatus | Queries the result of an asynchronous task. |
ListServerGroups | Queries server groups. |
ListListeners | Queries listeners. |
GetListenerHealthStatus | Queries the health check status of a listener. |
GetListenerAttribute | Queries the attributes of a listener. |
ListSystemSecurityPolicy | Queries system security policies. |
ListLoadBalancers | Queries NLB instances. |
GetLoadBalancerAttribute | Queries the details of an NLB instance. |
ListTagResources | Queries the tags that are added to resources. |
AddServersToServerGroup | Adds backend servers to a server group. |
RemoveServersFromServerGroup | Removes backend servers from a server group. |
LoadBalancerJoinSecurityGroup | Adds an NLB instance to a security group. |
TagResources | Adds tags to resources. |
LoadBalancerLeaveSecurityGroup | Removes an NLB instance from a security group. |
AttachCommonBandwidthPackageToLoadBalancer | Associates an EIP bandwidth plan with an NLB instance. |