File beat on windows

Hi,
I'm having an issue with filebeat on windows, why this error ?
thanks,

and my yml file:

Check for trailing spaces in your YAML file and remove them.

The problem is here:

ssl.certificate_authorities: [ "C:\Users\...

Windows paths use \ as a separator instead of /, and if you wrap them in double-quotes, they will be interpreted as an escape character. In your case \U is interpreted as an unicode escape and that's why it's expecting a hexadecimal number after it.

To avoid this problems, either:

  • Use single quotes ('C:\Users...) instead of double-quotes
  • Use slash as a path-separator ("C:/Users/...)

See our YAML tips & gotchas

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.