AWS Network Firewall metrics in Amazon CloudWatch
You can monitor AWS Network Firewall using CloudWatch, which collects raw data and processes it into readable, near real-time metrics. CloudWatch stores your metrics for 15 months, so that you can access historical information for added perspective on how your web application or service is performing. You can also set alarms that watch for certain thresholds, and send notifications or take actions when those thresholds are met. For more information, see the Amazon CloudWatch User Guide.
Note
Access to metrics in CloudWatch depends on whether you are a firewall owner or VPC endpoint association owner. A firewall owner can view metrics for firewalls they own, including VPC endpoint associations associated with the firewall. If a VPC endpoint association owner also owns the primary firewall endpoint, they can view metrics in CloudWatch for both the firewall's primary endpoints and any associated secondary endpoints (VPC endpoint associations). However, if a VPC endpoint association owner does not also own the firewall endpoint, they cannot access or view metrics in CloudWatch. For information, see Considerations for working with firewalls and firewall endpoints.
Use the following procedures to view the metrics for Network Firewall.
To view metrics using the CloudWatch console
Metrics are grouped first by the service namespace, and then by the various dimension combinations within each namespace. The CloudWatch namespace for Network Firewall is AWS/NetworkFirewall.
Open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/
. -
In the navigation pane, choose Metrics.
-
On the All metrics tab, select the Region and then select
AWS/NetworkFirewall.
To view metrics using the AWS CLI
-
For Network Firewall, at a command prompt use the following command:
aws cloudwatch list-metrics --namespace "AWS/NetworkFirewall"
AWS Network Firewall metrics
The AWS/NetworkFirewall namespace includes the following metrics. The metrics that a firewall reports depend on whether it uses a Next Generation policy or a Classic Network Firewall policy. For information about the policy types, see AWS Network Firewall firewall policy versions.
Next Generation policy metrics
A firewall that uses a Next Generation policy reports the following metrics. Each metric carries an Engine dimension that identifies the inspection engine it's for: Firewall for the firewall engine, IPS for the IPS engine, System for counts that aren't specific to one engine, and TLS for TLS inspection. The packet-verdict metrics are reported separately for each engine, so you can see each engine's effect on your traffic. For the Engine dimension, see Network Firewall Dimensions and Metrics. For information about Next Generation policies, see Next Generation policies.
| Metric | Description | Engine dimension |
|---|---|---|
|
Number of packets that the firewall engine allowed to pass. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of packets that the IPS engine allowed to pass. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of packets that the firewall engine dropped. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of packets that the IPS engine dropped. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of packets that the firewall engine rejected. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of packets that the IPS engine rejected. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of TLS-inspected packets that the firewall engine allowed to pass. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of TLS-inspected packets that the IPS engine allowed to pass. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of TLS-inspected packets that the firewall engine dropped. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of TLS-inspected packets that the IPS engine dropped. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of TLS-inspected packets that the firewall engine rejected. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of TLS-inspected packets that the IPS engine rejected. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of packets that the firewall engine's default action was applied to—that is, packets that didn't match any firewall rule at a hook. This counts applications of the default action regardless of whether it allows, drops, or rejects the traffic. For more information, see Firewall default action. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of packets received by the firewall engine. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of packets received, reported at the system level rather than for a specific engine. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of bytes received by the firewall engine. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of bytes received, reported at the system level rather than for a specific engine. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of TLS packets received for TLS inspection. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of errors observed by Network Firewall while inspecting SSL/TLS packets. Reported only when the policy has a TLS inspection configuration. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of SSL/TLS connections that timed out during SSL/TLS inspection by Network Firewall. Reported only when the policy has a TLS inspection configuration. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of SSL/TLS connections to TLS servers whose certificates have been confirmed as not revoked. Reported only when the policy has a TLS inspection configuration with certificate revocation checking. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of SSL/TLS connections to TLS servers whose certificates have been confirmed as revoked. Reported only when the policy has a TLS inspection configuration with certificate revocation checking. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of SSL/TLS connections to TLS servers whose certificate revocation status is unknown or couldn't be determined by the firewall. This can occur when the OCSP responder for a server certificate returns an unknown status, or when the firewall can't connect to the CRL or OCSP endpoints provided in the certificate. Reported only when the policy has a TLS inspection configuration with certificate revocation checking. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of packets handled by the stream exception policy. This count isn't specific to one inspection engine. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of packets dropped for failing packet validation due to issues with the packet. This count isn't specific to one inspection engine. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of packets dropped for reasons other than those described by Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of flows whose destination IP address matched an IP address that Amazon Route 53 resolved for an allowed domain. Reported when you use firewall rules that match by Route 53 resolved domain. Counted per flow, at the first verdict for the flow. For more information, see Generating firewall rules from domain names. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of flows whose destination IP address didn't match a resolved IP address for an allowed domain. Counted per flow, at the first verdict for the flow. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of flows for which the resolved domain validation couldn't be completed. Counted per flow, at the first verdict for the flow. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
|
Number of flows whose source Availability Zone wasn't available for resolved domain validation. Counted per flow, at the first verdict for the flow. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
|
In the preceding table, TLSReceivedPackets is published with Engine=System. The TLS inspection error, timeout, and certificate revocation metrics (such as TLSErrors, TLSTimedOutConnections, and the certificate revocation status metrics) are published with Engine=TLS. Those error, timeout, and revocation metrics behave the same as for a Classic Network Firewall policy, and appear in the rows of the preceding table.
Classic Network Firewall metrics
A firewall that uses a Classic Network Firewall policy reports the following metrics.
| Metric | Description | Applicable resource |
|---|---|---|
|
|
Number of packets dropped due to rule actions. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
Firewalls and VPC endpoint associations |
|
|
Number of flows for which resolved IP validation confirmed that the destination IP address was one that the Amazon Route 53 Resolver resolved for a domain. Counted once for each flow, at the first validation verdict, not for each packet. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
Firewalls |
|
|
Number of flows for which resolved IP validation ran but the destination IP address was not one that the Amazon Route 53 Resolver resolved for a domain. This count reflects the resolution outcome and is independent of the configured action. For example, it increments even when the action is Reporting criteria: There is a nonzero value. Valid statistics: Sum |
Firewalls |
|
|
Number of flows for which resolved IP validation didn't complete because of an error. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
Firewalls |
|
|
Number of flows that resolved IP validation can't evaluate because the Availability Zone doesn't support the feature. For a transit gateway-attached firewall, this is the Availability Zone of the client. For other firewalls, it's the Availability Zone where you deploy the firewall endpoint. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
Firewalls |
|
|
Number of packets dropped for failing packet validation due to issues with the packet. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
Firewalls and VPC endpoint associations |
|
|
Number of packets dropped due to reasons other than those described by Reporting criteria: There is a nonzero value. Valid statistics: Sum |
Firewalls and VPC endpoint associations |
|
|
Number of packets inspected for a firewall policy or stateless rulegroup for which a custom action is defined. This metric is only used for the dimension Reporting criteria: There is a nonzero value. Valid statistics: Sum |
Firewall only |
|
|
Number of packets that the Network Firewall firewall allowed through to their destinations. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
Firewalls and VPC endpoint associations |
|
|
Number of packets received by the Network Firewall firewall. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
Firewalls and VPC endpoint associations |
|
|
Number of bytes received by the Network Firewall firewall. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
Firewall only |
|
|
The number of packets rejected due to Reporting criteria: There is a nonzero value. Valid statistics: Sum |
Firewall only |
|
|
The number of packets matching the firewall policy's stream exception policy. You can configure stream exception policy settings while creating a firewall policy in the console, or by the StatefulEngineOptions structure when using the API. For more information about stream exception policy settings, see the Stream exception policy option in the Creating a firewall policy in AWS Network Firewall procedure. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
Firewall only |
|
|
Number of packets dropped by Network Firewall while inspecting SSL/TLS packets. The value of this metric might differ between stateless and stateful rule processing due to the TCP and TLS connection termination that occurs prior to stateful packet inspection. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
Firewall only |
|
|
Number of errors observed by Network Firewall while inspecting SSL/TLS packets. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
Firewall only |
|
|
Number of packets passed by Network Firewall while inspecting SSL/TLS packets. The value of this metric might differ between stateless and stateful rule processing due to the TCP and TLS connection termination that occurs prior to stateful packet inspection. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
Firewall only |
|
|
Number of SSL/TLS packets received by the Network Firewall firewall. The value of this metric might differ between stateless and stateful rule processing due to the TCP and TLS connection termination that occurs prior to stateful packet inspection. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
Firewall only |
|
|
Number of packets rejected by Network Firewall while inspecting SSL/TLS packets. The value of this metric might differ between stateless and stateful rule processing due to the TCP and TLS connection termination that occurs prior to stateful packet inspection. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
Firewall only |
|
|
The number of SSL/TLS connections to TLS servers whose certificates have been confirmed as not revoked. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
Firewall only |
|
|
The number of SSL/TLS connections to TLS servers whose certificates have been confirmed as revoked. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
Firewall only |
|
|
The number of SSL/TLS connections to TLS servers whose certificates revocation status is unknown or could not be determined by the firewall. This can occur when the OCSP responder for a server certificate returns an unknown status, or when the firewall is unable to connect to the CRL or OCSP endpoints provided in the certificate. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
Firewall only |
|
|
Number of SSL/TLS connections that timed out during SSL/TLS inspection by Network Firewall. Reporting criteria: There is a nonzero value. Valid statistics: Sum |
Firewall only |
AWS Network Firewall dimensions
Network Firewall can use the following dimension combinations to categorize your metrics:
| Dimension | Description |
|---|---|
|
|
Availability Zone in the Region where the Network Firewall firewall is active. |
|
|
Dimension for a publish metrics custom action that you defined. You can define this for a rule action in a stateless rule group or for a stateless default action in a firewall policy. |
|
|
Rules engine that processed the packet. For a firewall that uses a Classic Network Firewall policy, the value is either Stateful or Stateless. For a firewall that uses a Next Generation policy, the value identifies which inspection engine the metric is for: Firewall for the firewall engine, IPS for the IPS engine, System for counts that aren't specific to one engine, and TLS for TLS inspection. For information about Next Generation policies, see Next Generation policies. |
|
|
Name that you specified for the Network Firewall firewall. |
|
|
Name that is generated for the Network Firewall |