Created
August 4, 2011 18:53
-
-
Save nickethier/1125932 to your computer and use it in GitHub Desktop.
Example Logstash config with exec input
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
exec { | |
type => 'proc-stat' | |
exec => 'cat /proc/stat' | |
period => 5 | |
} | |
exec { | |
type => 'free' | |
exec => 'free' | |
period => 8 | |
} | |
exec { | |
type => 'opt-du' | |
exec => 'du -sh /opt' | |
period => 10 | |
} | |
} | |
output { | |
stdout {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"command" and "interval" should be used instead of "exec" and "period" in logstash 2.2.4