I am trying to build packetbeat from sources, and I tried running using command
"go run main.go -c packetbeat.yml"
It gives error
Exiting: error initializing publisher: Error loading template /tmp/go-build318793343/command-line-arguments/_obj/exe/packetbeat.template.json: open /tmp/go-build318793343/command-line-arguments/_obj/exe/packetbeat.template.json: no such file or directory
exit status 1
Some background
Installed go language, configured env variables. Ran commands
"make"
"make update"
and then I ran command "go run main.go -c packetbeat.yml" and then it started giving above exception.