Enable Usage Logging
On the F5 BIG-IP with AFM device, you are able to enable logging. Please note that:
- Policies must have logging enabled per rule to track usage.
- Each virtual server must have logging enabled to track usage.
- Implicit rules do not trigger logging events (On the device, go to Security > Options > Firewall Options).
- Create explicit default rules if tracking is desired.
- Staged policies create logging that looks exactly like enforced policies.
To enable logging on your F5 BIG-IP with AFM device, complete the following steps.
- Log in to the F5 Configuration Utility.
- Add a LTM pool.
- Navigate to Local Traffic > Pools > Create.
- In the Name box, type FM_dc.
- In the New Members box:
- Enter the IP Address of the data collector.
- In the Service Port box, type 514.
- Click Add.
- Create a high-speed log destination using LTM pool.
- Click System > Logs > Configuration > Log Destination > Create.
- In the Type box, select Remote High-Speed Log.
- In the Pool Name box, type FM_dc.
- In the Protocol box, select UDP.
- Click Finished.
- Create a remote syslog destination.
Click System > Logs > Configuration > Log Destinations > Create.
- In the Name box, type FM_syslog.
In the Type box, select Remote Syslog.
In the Syslog Format box, select Syslog.
In the Forward To box, select FM_HSL.
- Click Finished.
-
Create a log publisher.
-
Click System > Logs > Configuration > Log Publishers > Create.
-
In the Name box, type FM_publisher.
-
In the Log Destinations section, move FM_syslog from Available to Selected.
- Click Finished.
-
-
Create an event logging profile.
-
Click Security > Event Logs > Logging Profiles > Create.
-
In the Profile Name box, type FM_publisher.
-
Select the Network Firewall Enabled check box.
-
In the Log Rule Matches section, select the Accept, Drop and Reject check boxes.
-
In the Storage Format section, select None.
- Click Finished.
-
-
Assign the event logging profile to any virtual servers that require it.
-
Click Local Traffic > Virtual Servers > name of VS.
-
Click Security Tab > Policies.
-
In the Log Profile box, move FM_usage from Available to Selected.
- Click Update.
-
Repeat for all VS that require this.
-