Guest User

Untitled

a guest
Jan 8th, 2018
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. input {
  2. beats {
  3. port => 5044
  4. }
  5. }
  6. filter {
  7. if [system] or [monitor] {
  8. ruby {
  9. path => "/etc/logstash/resources_usage_alert.rb"
  10. }
  11. }
  12. }
  13. output {
  14. stdout { codec => rubydebug } # for debugging
  15. if [@metadata][email_message] {
  16. email {
  17. to => "anton.leonov@appscale.com" # should be engineering
  18. from => "monit@appscale.com"
  19. subject => "%{[@metadata][email_message][subject]}"
  20. body => "%{[@metadata][email_message][body]}"
  21. username => "monit@appscale.com"
  22. password => "bvkwvalduscssuxy"
  23. use_tls => true
  24. port => 587
  25. address => "smtp.gmail.com"
  26. authentication => "plain"
  27. debug => true
  28. }
  29. }
  30. if [@metadata][beat] {
  31. elasticsearch {
  32. hosts => "localhost:9200"
  33. manage_template => false
  34. index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
  35. document_type => "%{[@metadata][type]}"
  36. }
  37. }
  38. }
Add Comment
Please, Sign In to add comment