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 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 5.1.1 (amd64), libbeat 5.1.1
what am I doing wrong?