Advertisement
Guest User

Untitled

a guest
Jan 30th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. input {
  2. stomp {
  3. destination => "/topic/myevents"
  4. host => "rabbitmq"
  5. password => "guest"
  6. user => "guest"
  7. vhost => "/"
  8. debug => true
  9. port => 61613
  10. }
  11. }
  12.  
  13. filter {
  14. ruby {
  15. code => 'require "open3"
  16. cmd = "/bin/events_filter.py {input should go here}"
  17. stdin, stdout, stderr = Open3.popen3(cmd)
  18. '
  19. }
  20. }
  21.  
  22. output {
  23. file {
  24. path => "~/events.txt"
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement