Create endpoint rules to monitor related requests
Endpoint rules modify and rename endpoints that start with, contain, or match a given string.
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.
-
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.
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.
Complete the following steps to create a new endpoint rule.
You must have the admin role to configure endpoint rules.
- From the Splunk Observability Cloud main menu, select .
- Select Create endpoint rule(s) for a service.
- 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.
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.