Backslashes
To pass a literal backslash in an argument to a Splunk Search Processing Language (SPL) command, you must escape the backslash by using the double-slash ( \\ ) string in your search. Any commands that execute subsequent to that initial escaping might need additional escaping, especially commands that use regular expressions because backslashes have special meaning in regular expressions. For information about backslashes in regular expressions, see SPL and regular expressions.
SPL uses the asterisk ( * ) as a wildcard character. The backslash symbol can't be used to escape the asterisk in search strings.
More about backslashes
For more information:
- See SPL and regular expressions
- See Support for backslash characters ( \ ) in the fields command in the Search Reference Manual.
- See Support for backslash characters ( \ ) in the rename command in the Search Reference Manual.
- See Quotes and escaping characters in the search command in the Search Reference Manual.
Wildcards | Event segmentation and searching |
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!