-
Notifications
You must be signed in to change notification settings - Fork 24
XML Processor
Refael Mizrahi edited this page Jan 27, 2022
·
3 revisions
This processor allows you to parse XML documents into fields.
- field
- targetField
- storeXml [boolean, default = true]
- xpath [this is a json object with key:values where the key is the xpath, and the value is the field name you want for that path] EX
{
"steps": [{
"xml": {
"config": {
"field": "message",
"targetField": "xmldata",
"store_xml": "false",
"xpath": {
"/testng-results/suite/test/class/@name": "test_name",
"/testng-results/suite/test/@started-at": "start_time",
"/testng-results/suite/test/@finished-at": "finish_time",
"/testng-results/suite/test/@duration-ms": "total_time",
"/testng-results/suite/test/class/test-method/@duration-ms": "time_testArray",
"/testng-results/@total": "total_tests",
"/testng-results/@passed": "total_passed",
"/testng-results/@failed": "total_failed",
"/testng-results/@skipped": "total_skipped",
"//full-stacktrace": "error_logs"
}
}
}
}]
}
- 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