-
Notifications
You must be signed in to change notification settings - Fork 24
Substring Processor
Yotam Bernaz edited this page Apr 8, 2022
·
1 revision
This processor allows you to overwrite a field's value with a partial substring.
- field
- begin - number of characters from the beginning of the original string that the new string should start from (optional, can be int or str)
- end - number of characters from the beginning of the original string that the new string should end at (optional, can be int or str)
Log sample
{
"message": "ALL WORK AND NO PLAY MAKES JOSH A DULL BOY"
}
Sawmill pipeline
{
"steps": [
{
"substring": {
"config": {
"field": "message",
"begin": 4,
"end": 20
}
}
}
]
}
Result
{
"message": "WORK AND NO PLAY"
}
- Home
-
Pipelines
-
Processors
- Add Field Processor
- Add Tag Processor
- AhoCorasick Processor
- Anonymize Processor
- Append List Processor
- Arrays Intersect Processor
- Base64 Decode Processor
- Convert Processor
- CSV Processor
- Date Processor
- Drop Processor
- External Mapping Source Processor
- GeoIP Processor
- Grok Processor
- JSON Processor
- Key Value Processor
- LowerCase Processor
- Math Processor
- Remove Field Processor
- Remove Tag Processor
- Rename Field Processor
- Split Processor
- Strip Processor
- Substitue Processor
- Substring Processor
- Translate Processor
- UpperCase Processor
- User Agent Processor
- URL Decode Processor
- XML Processor
- DeDot Processor
- Doc Size Processor
- If statement
- Additional Commands
-
Processors