Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. package logmatic
  2.  
  3. import (
  4. "github.com/elastic/beats/libbeat/common"
  5. "github.com/elastic/beats/libbeat/common/op"
  6. "github.com/elastic/beats/libbeat/outputs"
  7.  
  8. "os"
  9. )
  10.  
  11. func init() {
  12. outputs.RegisterOutputPlugin("logmatic", New)
  13. }
  14.  
  15. type console struct {
  16. out *os.File
  17. codec outputs.Codec
  18. }
  19.  
  20. func New(_ common.BeatInfo, _ *common.Config, _ int) (outputs.Outputer, error) {
  21. c := &console{}
  22. return c, nil
  23. }
  24. // Implement Outputer
  25. func (c *console) Close() error {
  26. return nil
  27. }
  28.  
  29. func (c *console) PublishEvent(s op.Signaler, opts outputs.Options, data outputs.Data, ) error {
  30. return nil
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement