Understanding routing precedence
By configuring IBM Cloud Logs Routing routing rules, you can specify how and where platform logs are routed in your account.
- You can use route rule inclusion filters to provide elevated control over how your platform logs are routed.
- You can configure default targets by using IBM Cloud Logs Routing settings to collect logs that are generated in the account and do not have a routing rule associated to define where they are routed . How the configuration is processed determines the final destination where platform logs are sent; each platform log is processed individually.
How are routes and rules applied
-
Routes are processed independently.
If platform logs match rules in multiple routes, those logs will be sent to all targets attached to the matched rules.
-
Route rules are processed in order.
Route rules are processed sequentially. The first match is used.
Once a platform log matches a rule within a route, it will not be processed by subsequent rules in that same route.
If a match is found and the rule specifies to drop logs, the logs are discarded.
-
Unmatched platform logs are discarded.
Platform logs that do not meet any criteria are sent to the default targets. For more information, see default targets setting.
If no default target is set, logs are not routed.