Run Bot Manager in observation mode
Create a Bot Manager Lite instance with action allow, so every request is scored and none is refused, from Azion Console, the Azion CLI, or the API.
You can create a Bot Manager Lite instance that scores every request and refuses none, from Azion Console, the Azion CLI, or the API. Use it the first time you put Bot Manager in front of real traffic, while you still have to find out what your own traffic scores.
Prerequisites
- A firewall bound to the workload that serves your application, with Bot Manager Lite installed. Refer to the Bot Manager quickstart.
- The Azion CLI installed and a configured personal token, for the CLI procedure.
- A personal token, for the API procedure. To create one, refer to Personal Tokens.
Create the instance
The instance takes one JSON arguments object. threshold is the score at which action fires, and 30 is the value Bot Manager Lite ships. action at allow applies nothing at that value, so a request that crosses the threshold is scored, logged, and served like any other. At 2, internal_logs writes one report line per request, including a request that scores 0. log_tag names this instance in those lines, so replace storefront-bots with a tag of your own.
For every argument an instance accepts, refer to Arguments.
To create the instance from Azion Console:
Access Azion Console > Firewalls, then select that firewall.
The button reads + Function Instance while the firewall holds no instance yet.
In the General section, enter a Name, such as bot-manager-observation.
The Function section offers the installed function. Only functions that run on a firewall appear in the selector.
Paste it into the JSON editor. The section renders one because Bot Manager Lite ships no argument schema to build a form from.
The instance appears in the Functions Instances list, which shows Name, Function, Last Editor, and Last Modified. The list shows no argument, so the object you entered is visible only by opening the instance again.