Create endpoint rules to monitor related requests
Use endpoint rules to modify endpoints to align with your analytical needs, naming conventions, and cardinality requirements.
Endpoint rules modify and rename endpoints that start with, contain, or match a given string. You can create a default endpoint rule that affects all services and custom endpoint rules that affect specific services.
You can use endpoint rules to modify endpoints to align with your analytical needs, naming conventions, and cardinality requirements. Endpoint rules support more targeted analysis with endpoint-specific metrics and business transactions.
Endpoint rules are trace-level modifications that affect how endpoints appear across Splunk APM, such as in the trace view, Tag Spotlight, and the Endpoint tab in the service view. They also affect the business transactions that are generated if your business transaction rules are based on endpoints.
Use cases for endpoint rules
You can use endpoint rules to:-
Group similar requests into a single endpoint.
-
Split an endpoint into multiple endpoints.
-
Dynamically rename grouped or split endpoints based on unique values in tags or URI segments. For example:
-
You want to split an
api/checkoutendpoint into multiple endpoints based on credit card types. This endpoint includes thecardTypetag with values forvisa,mastercard, andamex. You can create a rule to rename endpoints that match theapi/checkoutstring based on the syntaxapi/checkout:<tag:cardType>. This rule splits theapi/checkoutendpoint into the following three endpoints:api/checkout:visa,api/checkout:mastercard, andapi/checkout:amex. -
You want to group the
POST /api/v1/checkoutandPOST /api/v2/checkoutendpoints into a single endpoint. You can create a rule to rename endpoints that contain thecheckoutstring based on the syntaxPOST /<URIsegment1>/<URIsegment3>. This rule groups the two endpoints into a single endpoint namedPOST /api/checkout.
-
-
Create multiple endpoint rules for a service and control the priority that they are applied.
Create a default endpoint rule
You must have the admin role to configure endpoint rules.
To create a default endpoint rule:
-
From the Splunk Observability Cloud main menu, select .
-
Under Default rule, select the row for the default rule.
-
Follow the on-screen instructions to update the rule, then select Update rule.
-
In the Status column, enable the toggle to activate the default rule.
Create a custom endpoint rule
You must have the admin role to configure endpoint rules.
To create a custom endpoint rule:
-
From the Splunk Observability Cloud main menu, select .
-
The Custom rules table lists services with existing custom endpoint rules.
-
If the service doesn't have existing custom rules, select Create endpoint rule(s) for a service..
-
If the service has existing custom rules, select the service from the table.
-
-
Select Add rule. Follow the on-screen instructions to create the rule.
-
If needed, adjust the priority of the new rule in the table. Rules are applied in the priority order defined in the table. By default, the newest rule has the highest priority.
-
Select Save endpoint rules to create and apply the rule.
Next steps
After you create endpoint rules, you can:
-
Configure business transaction rules that use the newly grouped endpoints.
-
View the modified endpoints in the trace view, Tag Spotlight, and the Endpoint tab in the service view.