Guest User

Untitled

a guest
Jan 8th, 2018
407
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 => "[email protected]" # should be engineering
  18. subject => "%{[@metadata][email_message][subject]}"
  19. body => "%{[@metadata][email_message][body]}"
  20. username => "[email protected]"
  21. password => "bvkwvalduscssuxy"
  22. use_tls => true
  23. port => 587
  24. address => "smtp.gmail.com"
  25. authentication => "plain"
  26. debug => true
  27. }
  28. }
  29. if [@metadata][beat] {
  30. elasticsearch {
  31. hosts => "localhost:9200"
  32. manage_template => false
  33. index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
  34. document_type => "%{[@metadata][type]}"
  35. }
  36. }
  37. }
Add Comment
Please, Sign In to add comment