toupper function converts all characters in a string to uppercase. Use this function to normalize text for case-insensitive operations, standardize identifiers, or format strings for emphasis in output.
For users of other query languages
If you come from other query languages, this section explains how to adjust your existing queries to achieve the same results in APL.Splunk SPL users
Splunk SPL users
In Splunk SPL, you use the
upper function. APL’s toupper provides the same functionality.ANSI SQL users
ANSI SQL users
In ANSI SQL, you use
UPPER for uppercase conversion. APL’s toupper provides the same functionality.Usage
Syntax
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| value | string | Yes | The input string to convert to uppercase. |
Returns
Returns the input string with all characters converted to uppercase.Use case examples
- Log analysis
- OpenTelemetry traces
- Security logs
Standardize HTTP status codes and methods for consistent alerting and reporting.QueryRun in PlaygroundOutput
This query normalizes HTTP methods to uppercase and creates emphasized error status codes for critical alerts.
| normalized_method | alert_status | request_count |
|---|---|---|
| GET | 200 | 5432 |
| POST | 201 | 2341 |
| GET | ERROR_500 | 234 |
List of related functions
- tolower: Converts strings to lowercase. Use this for the opposite transformation.
- totitle: Converts strings to title case. Use this for capitalized formatting.
- strcmp: Compares strings. Use toupper before strcmp for case-insensitive comparisons.
- strcat: Concatenates strings. Use this with toupper to build emphasized messages.