Open mikesparr opened 8 years ago
$ go version
go version go1.6.2 darwin/amd64
It appears the beat library no longer has code you are referencing. In checking the latest topbeat
I see they import another library called publisher
and set the beat event
= publisher.Client
. I edited your code to better match the current topbeat
and got the build/install to work and with a vanilla install of Kafka it outputs the following when running. I will fork and issue a pull request with my changes if interested.
2016/06/15 19:06:10.301639 kafkabeat.go:155: INFO Partitions retrieved for topic diffusion
2016/06/15 19:06:10.301686 kafkabeat.go:210: DBG Processing partition 0
2016/06/15 19:06:10.302391 kafkabeat.go:215: DBG Current log size is 0 for partition 0
2016/06/15 19:06:10.302470 client.go:176: DBG Publish: {
"@timestamp": "2016-06-15T19:06:10.302Z",
"beat": {
"hostname": "Mikebook-Pro-SSD.local",
"name": "Mikebook-Pro-SSD.local"
},
"partition": 0,
"size": 0,
"topic": "diffusion",
"type": "topic"
}
2016/06/15 19:06:10.302491 kafkabeat.go:174: INFO 1 Events sent
2016/06/15 19:06:11.303905 output.go:108: DBG output worker: publish 1 events
{
"@timestamp": "2016-06-15T19:06:10.302Z",
"beat": {
"hostname": "Mikebook-Pro-SSD.local",
"name": "Mikebook-Pro-SSD.local"
},
"partition": 0,
"size": 0,
"topic": "diffusion",
"type": "topic"
}
Hi Mikesparr did you manage to get kafkabeat running and displaying the lag and offset?
Only with my proposed pull request. Newer versions of libbeat may have changed since you first built, so I had to tweak a few methods to get it to work.
Please review my PR as using "go get ..." still pulls in your deps even on my forked version then I have to manually overwrite every deploy.
Sent from my iPhone
On Oct 5, 2016, at 6:57 AM, Gearoid Maguire notifications@github.com wrote:
Hi Mikesparr did you manage to get kafkabeat running and displaying the lag and offset?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
I followed the
clone
instructions in your readme and all Go paths are working, but themake
command fails and tryinggo get ...
also errs out. Any insights into what I'm doing wrong to get this built? Thanks!