I'm porting an output plugin to the new interface, however I'm not seeing
where the line should be drawn between the two. Is one called more often
than the other (like on restart)?

The TCP and ElasicSearch output plugins I'm using as a guide seem to have
initialization of things in seemingly inconsistent places, like channels
created in the Init(), but buffers for batches in Prepare(), and TCP output
only doing things in the Prepare() function that requires the runner and
helper.

My main issue is that in my plugin, it has to grab a key from a server
before it can do anything, and should fail the plugin if it can't do this,
but both functions seem like a good place to do that get.
_______________________________________________
Heka mailing list
[email protected]
https://mail.mozilla.org/listinfo/heka

Reply via email to