Skip to main content
Sumo Logic

Reference a Field with Special Characters

The Sumo Logic search language allows alphanumeric characters, hyphens, and underscores as valid characters for field names. In cases where a field name contains special characters, you need to escape the field name by using the following syntax when calling the field in the query:


Here's an example:

| keyvalue regex " ([A-Z_-]+?)='([^']+?)'" keys "TYPE", "MESSAGES", "CHANNEL", "DOCUMENT-URI"
| count by %"document-uri"