This is a cache of https://www.elastic.co/guide/en/beats/metricbeat/8.19/error-found-unexpected-character.html. It is a snapshot of the page as it appeared on 2025-11-18T01:57:24.431+0000.
Found unexpected or unknown characters | Metricbeat Reference [8.<strong>19</strong>] | Elastic

Found unexpected or unknown characters

edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.

Found unexpected or unknown characters

edit

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).

Also see the general advice under Avoid YAML formatting problems.