gingerwizard / kafkabeat

Other
17 stars 9 forks source link

Fixed installation issue with missing Events class for beat library #2

Open mikesparr opened 8 years ago

mikesparr commented 8 years ago

Reported in issue #1 it appears this beat is not using same libraries as the latest version of beats, namely Topbeat, so I updated the publisher code so it will build/install. Afterwards the test status was OK and the executable worked as follows:

TEST

$ go test
PASS
ok      github.com/gingerwizard/kafkabeat   0.013s

RUN

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"
}