Thanks For Downloading!Review the documentation below and follow any custom installation steps. If no install steps are listed, most Splunk Apps and Add-ons can be installed as follows: Windows: Decompress the downloaded file using a tool like 7-Zip and place the resulting folder into Unix/Linux: Decompress the downloaded file using a tool like DescriptionA few utilities to help deal with indexed xml. xmlkvrecursive, xmlsplit, xmlprettyprint, xmlstripdeclaration xmlutils provides a few commands for working with xml documents. xmlkv and xpath can accomplish most tasks, these are simply alternatives. These commands will work on a field called "xml" if found, otherwise _raw. xmlprettyprintxmlprettyprint does what you would expect, pretty printing the xml. xmlsplitxmlsplit splits nodes into new events, copying other fields on the event to the new events. Examples:Given this xml: xmlsplit field="b" xmlkvrecursivexmlkvrecursive recursively builds fields from the tag and attribute names. The optional boolean flatten determines how repeated fields are treated. By default, repeated field names will be appended into a multi-value field. With flatten="true", new fields will be created. Examples:sourcetype=* | head 1 | eval _raw="<a la='sdf'><b>foo</b><b>bar</b></a>" | xmlkvrecursive sourcetype=* | head 1 | eval _raw="<a la='sdf'><b>foo</b><b>bar</b></a>" | xmlkvrecursive flatten=true Most of the time, xpath or xmlkv would be more appropriate. This command is useful if you need to extract multiple fields that are not extracted easily using one of those commands. xmlstripdeclarationxmlstripdeclaration removes the <?xml declaration from the beginning of the xml. This is needed if the declaration is incorrect and the parser used by the other commands would refuse to continue. Versions and Release Notes
Version 1.0 (current version - updated Dec 30, 2010)
|
