Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input {
- beats {
- port => 5044
- }
- }
- filter {
- if [system] or [monitor] {
- ruby {
- path => "/etc/logstash/resources_usage_alert.rb"
- }
- }
- }
- output {
- stdout { codec => rubydebug } # for debugging
- if [@metadata][email_message] {
- email {
- to => "anton.leonov@appscale.com" # should be engineering
- from => "monit@appscale.com"
- subject => "%{[@metadata][email_message][subject]}"
- body => "%{[@metadata][email_message][body]}"
- username => "monit@appscale.com"
- password => "bvkwvalduscssuxy"
- use_tls => true
- port => 587
- address => "smtp.gmail.com"
- authentication => "plain"
- debug => true
- }
- }
- if [@metadata][beat] {
- elasticsearch {
- hosts => "localhost:9200"
- manage_template => false
- index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
- document_type => "%{[@metadata][type]}"
- }
- }
- }
Add Comment
Please, Sign In to add comment