Libbeat syntax error logger.go


I'm trying to install a package from beat community but I encounter a syntax error in some file from the github folder of elastic.

According to example on the elastic page, I cloned the elastic/beats directory.
I try to install metricbeat (the error is the same for other package) with:

go install

But I receive the following error syntax error: unexpected = in type declaration

I don't know how what is the right declaration of this variable in logger.go.

(Adrian Serrano) #2

The version of Go that you are using is too old. You need at least Go 1.9.

You can check your go version with the go version command.

(system) #3

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