I just checked out the 5.1 branch of beats, and built filebeat there.
The filebeat.template.json clearly says it is version 5.1.1, but filebeat, when started with the -version flag always says it is version 6.0.0
./filebeat -version
filebeat version 6.0.0-alpha1 (amd64), libbeat 6.0.0-alpha1
i really don't want to use prebuilt binaries, but if I do on my testing system the filebeat tells me its version 5.1.1 as it should be.
./filebeat -version
filebeat version 5.1.1 (amd64), libbeat 5.1.1
What is the commit id you are on? If you checked out the 5.2 branch I would expect it to show 5.1.2. Just quickly tested it locally and it seems to work. How did you build the binary?
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.