Skip to content

Commit

Permalink
Update _ingest-pipelines/processors/gsub.md
Browse files Browse the repository at this point in the history
Co-authored-by: Nathan Bower <[email protected]>
Signed-off-by: Melissa Vagi <[email protected]>
  • Loading branch information
vagimeli and natebower authored Jun 6, 2024
1 parent ef98ce6 commit cb182d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _ingest-pipelines/processors/gsub.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ nav_order: 130

# Gsub processor

Check failure on line 8 in _ingest-pipelines/processors/gsub.md

View workflow job for this annotation

GitHub Actions / vale

[vale] _ingest-pipelines/processors/gsub.md#L8

[OpenSearch.Spelling] Error: Gsub. If you are referencing a setting, variable, format, function, or repository, surround it with tic marks.
Raw output
{"message": "[OpenSearch.Spelling] Error: Gsub. If you are referencing a setting, variable, format, function, or repository, surround it with tic marks.", "location": {"path": "_ingest-pipelines/processors/gsub.md", "range": {"start": {"line": 8, "column": 3}}}, "severity": "ERROR"}

The `gsub` processor performs a regular expression search-and-replace operation on string fields in incoming documents. If the field contains an array of strings, the operation is applied to all elements in the array. However, if the field contains non-string values, the processor throws an exception. Uses cases for the `gsub` processor include removing sensitive information from log messages or user-generated content, normalizing data formats or conventions (for example, converting date formats, removing special characters), and extracting or transforming substrings from field values for further processing or analysis.
The `gsub` processor performs a regular expression search-and-replace operation on string fields in incoming documents. If the field contains an array of strings, the operation is applied to all elements in the array. However, if the field contains non-string values, the processor throws an exception. Use cases for the `gsub` processor include removing sensitive information from log messages or user-generated content, normalizing data formats or conventions (for example, converting date formats, removing special characters), and extracting or transforming substrings from field values for further processing or analysis.

The following is the syntax for the `gsub` processor:

Expand Down

0 comments on commit cb182d8

Please sign in to comment.