-
Notifications
You must be signed in to change notification settings - Fork 24
Math Processor
Refael Mizrahi edited this page Aug 28, 2022
·
7 revisions
This processor allows you to run mathematical functions on one or more fields, and output the value to a new field.
- targetField
- expression
{
"steps": [
{
"math": {
"config": {
"targetField": "message_slot.DispatchDurationMs",
"expression": "{{message_slot.DispatchDurationMs}} - {{message_slot.DequeueDurationMs}}"
}
}
}
]
}
{
"steps": [
{
"math": {
"config": {
"targetField": "SuccessRatio",
"expression": "{{number1}} / {{number2}}"
}
}
}
]
}
{
"steps": [
{
"math": {
"config": {
"targetField": "SuccessRatio",
"expression": "({{message_slot.DispatchDurationMs}} * 1024) * 1024"
}
}
}
]
}
{
"steps": [
{
"math": {
"config": {
"targetField": "SuccessRatio",
"expression": "({{message_slot.DispatchDurationMs}} / 1024) * ({{lmessage_slot.DispatchDurationMs}} / 1000)"
}
}
}
]
}
- 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