---
title: Found unexpected or unknown characters
description: Either there is a problem with the structure of your config file, or you have used a path or expression that the YAML parser cannot resolve because the...
url: https://www.elastic.co/docs/reference/beats/auditbeat/error-found-unexpected-character
products:
  - Auditbeat
  - Beats
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# Found unexpected or unknown characters
Either there is a problem with the structure of your config file, or you have used a path or expression that the YAML parser cannot resolve because the config file contains characters that aren’t properly escaped.
If the YAML file contains paths with spaces or unusual characters, wrap the paths in single quotation marks (see [Wrap paths in single quotation marks](/docs/reference/beats/auditbeat/yaml-tips#wrap-paths-in-quotes)).
Also see the general advice under [*Avoid YAML formatting problems*](https://www.elastic.co/docs/reference/beats/auditbeat/yaml-tips).