Skip to content

Instantly share code, notes, and snippets.

@nickethier
Created February 9, 2012 17:43
Show Gist options
  • Save nickethier/1781505 to your computer and use it in GitHub Desktop.
Save nickethier/1781505 to your computer and use it in GitHub Desktop.
Logstash Error
input {
exec {
command => "cat /proc/stat"
interval => 10
type => "cpu"
}
# stdin {
# type => "cpu"
# }
}
filter {
split {
type => "cpu"
}
}
output {
stdout { }
}
nickethier@molly:~/gitstuff/logstash (*)
> ruby --1.9 bin/logstash agent -f test.conf master [ac992bb] untracked
I, [2012-02-09T10:42:26.055000 #19326] INFO -- : Using beta plugin 'exec'. For more information about plugin statuses, see http://logstash.net/docs/1.1.0/plugin-status {"timestamp":"2012-02-09T10:42:26.400000 -0700","message":"Using beta plugin 'exec'. For more information about plugin statuses, see http://logstash.net/docs/1.1.0/plugin-status ","level":"info"}
I, [2012-02-09T10:42:26.074000 #19326] INFO -- : Using beta plugin 'split'. For more information about plugin statuses, see http://logstash.net/docs/1.1.0/plugin-status {"timestamp":"2012-02-09T10:42:26.730000 -0700","message":"Using beta plugin 'split'. For more information about plugin statuses, see http://logstash.net/docs/1.1.0/plugin-status ","level":"info"}
LocalJumpError: yield called out of block
filter at /home/nethier/gitstuff/logstash/lib/logstash/filters/split.rb:58
each at org/jruby/RubyArray.java:1603
filter at /home/nethier/gitstuff/logstash/lib/logstash/filters/split.rb:49
execute at /home/nethier/gitstuff/logstash/lib/logstash/filters/base.rb:75
call at org/jruby/RubyProc.java:262
time_block at /home/nethier/.rvm/gems/jruby-1.6.4@logstash/gems/cabin-0.3.6/lib/cabin/metrics/timer.rb:22
time at /home/nethier/.rvm/gems/jruby-1.6.4@logstash/gems/cabin-0.3.6/lib/cabin/metrics/timer.rb:13
execute at /home/nethier/gitstuff/logstash/lib/logstash/filters/base.rb:74
filter at /home/nethier/gitstuff/logstash/lib/logstash/filterworker.rb:57
each at org/jruby/RubyArray.java:1603
filter at /home/nethier/gitstuff/logstash/lib/logstash/filterworker.rb:49
each at org/jruby/RubyArray.java:1603
filter at /home/nethier/gitstuff/logstash/lib/logstash/filterworker.rb:48
run at /home/nethier/gitstuff/logstash/lib/logstash/filterworker.rb:31
run_filter at /home/nethier/gitstuff/logstash/lib/logstash/agent.rb:672
run_with_config at /home/nethier/gitstuff/logstash/lib/logstash/agent.rb:400
input {
# exec {
# command => "cat /proc/stat"
# interval => 10
# type => "cpu"
# }
stdin {
type => "cpu"
}
}
filter {
split {
type => "cpu"
}
}
output {
stdout { }
}
nickethier@molly:~/gitstuff/logstash (*)
> cat /proc/stat | ruby --1.9 bin/logstash agent -f test.conf master [ac992bb] untracked
I, [2012-02-09T10:39:08.834000 #19131] INFO -- : Using beta plugin 'stdin'. For more information about plugin statuses, see http://logstash.net/docs/1.1.0/plugin-status {"timestamp":"2012-02-09T10:39:08.820000 -0700","message":"Using beta plugin 'stdin'. For more information about plugin statuses, see http://logstash.net/docs/1.1.0/plugin-status ","level":"info"}
I, [2012-02-09T10:39:08.853000 #19131] INFO -- : Using beta plugin 'split'. For more information about plugin statuses, see http://logstash.net/docs/1.1.0/plugin-status {"timestamp":"2012-02-09T10:39:08.852000 -0700","message":"Using beta plugin 'split'. For more information about plugin statuses, see http://logstash.net/docs/1.1.0/plugin-status ","level":"info"}
2012-02-09T17:39:09.105000Z stdin://molly/: cpu 1119586 14377 303232 12316526 72102 128 922 0 0 0
2012-02-09T17:39:09.138000Z stdin://molly/: cpu0 558406 8578 152657 6134737 58424 128 772 0 0 0
2012-02-09T17:39:09.141000Z stdin://molly/: cpu1 561180 5798 150575 6181788 13678 0 150 0 0 0
2012-02-09T17:39:09.144000Z stdin://molly/: intr 68028978 29028988 107963 0 0 0 0 0 0 1 296 0 0 1049091 0 209807 207321 2437038 1088721 7 0 1067 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 86 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2012-02-09T17:39:09.147000Z stdin://molly/: ctxt 95544413
2012-02-09T17:39:09.150000Z stdin://molly/: btime 1328672065
2012-02-09T17:39:09.154000Z stdin://molly/: processes 51294
2012-02-09T17:39:09.158000Z stdin://molly/: procs_running 2
2012-02-09T17:39:09.167000Z stdin://molly/: procs_blocked 0
2012-02-09T17:39:09.170000Z stdin://molly/: softirq 9355442 5 4697332 9087 193249 278932 5 62686 1332251 25983 2755912
.
.
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment