Skip to content

Instantly share code, notes, and snippets.

@nickethier
Created August 4, 2011 18:53
Show Gist options
  • Select an option

  • Save nickethier/1125932 to your computer and use it in GitHub Desktop.

Select an option

Save nickethier/1125932 to your computer and use it in GitHub Desktop.
Example Logstash config with exec input
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 {}
}
@luminatory
Copy link
Copy Markdown

"command" and "interval" should be used instead of "exec" and "period" in logstash 2.2.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment