Uppercase
Synopsis
Converts string values to their uppercase equivalent.
Schema
uppercase:
- field: <ident>
- description: <text>
- if: <script>
- ignore_failure: <boolean>
- ignore_missing: <boolean>
- on_failure: <processor[]>
- on_success: <processor[]>
- tag: <string>
- target_field: <ident>
Configuration
Field | Required | Default | Description |
---|---|---|---|
field | Y | - | Field containing string(s) to convert |
description | N | - | Explanatory note |
if | N | - | Condition to run |
ignore_failure | N | false | See Handling Failures |
ignore_missing | N | false | If true , quietly exit if field doesn't exist |
on_failure | N | - | See Handling Failures |
on_success | N | - | See Handling Success |
tag | N | - | Identifier |
target_field | N | field | Field to store the converted value(s) |
Details
The processor can handle both single string fields and arrays of strings. When processing an array, it converts each element to uppercase.
note
The processor uses the standard string uppercase conversion rules of the Go programming language, which handles Unicode characters appropriately.
warning
If the field contains non-string values, the processor will fail unless ignore_failure
is set to true
.
Examples
Single String
Converting the username to uppercase... |
|
capitalizes all characters: |
|
String Arrays
Processing an array of email addresses... |
|
converts each element: |
|
Target Field
Storing the uppercase values in a new field... |
|
preserves the original: |
|