I’m setting up Winlogbeat to output to Kafka with SSL certificates used to authenticate. The certificates will be generated, rotated and supplied automatically by another system. But when trying to configure it, winlogbeat test config fails if the files have unix line ends.
It generally doesn’t make much of a difference these days about which slashes you use in Windows, as most utilities seem to accept either.
But while gathering data to indicate that it wasn’t any of the things you’d suggested, I ran the 2 simon.unix.* files through a hexdump, and noticed that the pair of them have somehow got 3 non-visible non-ASCII bytes at the very start of the files, which had actually also been stripped out while doing the get-content | set-content fixing up of line ends.
Removing those non-ASCII bytes from the files, the config test then actually works fine, with either unix or windows line ends in the certificates.
So the issue’s identified, and it’s nothing to do with the Kafka output. Sorry for the noise.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.