xmlunescape
Description
Un-escapes xml
characters, including entity references such as &, <, and >, so that they return to their corresponding characters. For example, &
becomes &
.
The xmlunescape
command is a streaming command. It is distributable streaming by default, but centralized streaming if the local
setting specified for the command in the commands.conf file is set to true. See Command types.
Syntax
xmlunescape maxinputs=<int>
Optional arguments
- maxinputs
- Syntax: maxinputs=<int>
- Description: The maximum number of inputs per invocation of the command. The
xmlunescape
command is invoked repeatedly in increments according to themaxinputs
argument until the search is complete and all of the results have been displayed. Do not change the value ofmaxinputs
unless you know what you are doing. - Default: 50000
Examples
Example 1: Un-escape all XML characters.
... | xmlunescape
xmlkv | xpath |
This documentation applies to the following versions of Splunk Cloud Platform™: 8.2.2112, 8.2.2201, 8.2.2202, 8.2.2203, 9.0.2205, 9.0.2208, 9.0.2209, 9.0.2303, 9.0.2305, 9.1.2308, 9.1.2312, 9.2.2403, 9.2.2406 (latest FedRAMP release), 9.3.2408
Feedback submitted, thanks!