Splunk Cloud Platform

Search Reference

xmlunescape

Description

Un-escapes xml characters, including entity references such as &, <, and >, so that they return to their corresponding characters. For example, &amp; 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 the maxinputs argument until the search is complete and all of the results have been displayed. Do not change the value of maxinputs unless you know what you are doing.
Default: 50000

Examples

Example 1: Un-escape all XML characters.

... | xmlunescape

Last modified on 12 January, 2023
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 (latest FedRAMP release), 9.2.2406


Was this topic useful?







You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters