The content of the file need to be updated with the the beats generator.
event := common.MapStr{ (1)
"@timestamp": common.Time(time.Now()), (2)
"type": b.Name,
"counter": counter,
}
bt.client.PublishEvent(event) (3)
logp.Info("Event sent")
counter++
TODO:
The content of the file need to be updated with the the beats generator.
TODO:
bt.client.Publish()beat.Eventinstead of using directly acommon.MapStr