This file contains hidden or 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 { | |
redis { | |
data_type => "list" | |
host => "10.0.0.1" | |
key => "q1" | |
port => 6379 | |
type => "redis2_q1" | |
threads => 1 | |
batch_events => 100 | |
} |
This file contains hidden or 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 { | |
generator { | |
type => "stdin" | |
lines => [ "this is an %{empty.match} in a string" ] | |
count => 1 | |
} | |
} | |
filter { | |
mutate { |
This file contains hidden or 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
{ | |
"template": "logstash-*", | |
"settings" : { | |
"number_of_shards" : 1, | |
"number_of_replicas" : 0, | |
"index" : { | |
"query" : { "default_field" : "@message" }, | |
"store" : { "compress" : { "stored" : true, "tv": true } } | |
} | |
}, |
This file contains hidden or 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
metrics { | |
tags => [ "apache-accesslog" ] | |
meter => [ "http.%{appenv}.status.%{status}" ] | |
add_tag => [ "apache-metrics" ] | |
past_seconds => 9 | |
} |
This file contains hidden or 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
/opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/sensu-dashboard-0.9.9/lib/sensu-dashboard/server.rb:185:in `load': no object read at line 1, column 1 [load.c:1073] (Oj::ParseError) | |
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/sensu-dashboard-0.9.9/lib/sensu-dashboard/server.rb:185:in `block (2 levels) in <class:Server>' | |
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3/lib/em/deferrable.rb:151:in `call' | |
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3/lib/em/deferrable.rb:151:in `set_deferred_status' | |
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3/lib/em/deferrable.rb:191:in `succeed' | |
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/em-http-request-1.0.3/lib/em-http/client.rb:113:in `unbind' | |
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/em-http-request-1.0.3/lib/em-http/client.rb:71:in `on_request_complete' | |
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/em-http-request-1.0.3/lib/em-htt |
This file contains hidden or 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
{ | |
"handlers": { | |
"logevent": { | |
"type": "extension", | |
"handle_flapping": true | |
} | |
}, | |
"logevent": { | |
"eventdir": "/var/log/sensu/events", | |
"keep": 10 |
This file contains hidden or 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
[ | |
{rabbit, [ | |
{ssl_listeners, [5671]}, | |
{ssl_options, [{cacertfile,"/etc/rabbitmq/ssl/cacert.pem"}, | |
{certfile,"/etc/rabbitmq/ssl/server_cert.pem"}, | |
{keyfile,"/etc/rabbitmq/ssl/server_key.pem"}, | |
{verify,verify_peer}, | |
{fail_if_no_peer_cert,true}]} | |
]}, | |
{rabbitmq_stomp, [{tcp_listeners, [61613]}, |
This file contains hidden or 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
#! /bin/bash | |
# | |
# This script needs "fpm". If you dont have it, | |
# run "gem install fpm" | |
# | |
# You also need to "apt-get install python-setuptools" (otherwise fpm fails) | |
clean() { | |
rm -rf whisper-0.9.10 carbon-0.9.10 graphite-web-0.9.10 |
This file contains hidden or 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
deb_hold_packages() { | |
for pkg in $*; do | |
aptitude hold $pkg | |
echo $pkg hold | /usr/bin/dpkg --set-selections | |
done | |
} | |
deb_installnoninteractive() { | |
logger -is -p local1.notice -t ec2bootstrap "installing deb package $*" | |
env DEBIAN_FRONTEND=noninteractive aptitude install -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' -f -q -y $* |
This file contains hidden or 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
def perform! | |
super | |
invoke_flush! if invoke_flush | |
disable_flushing!(true) if disable_flushing | |
begin | |
unless backup_all? | |
invoke_close! if invoke_close | |
end | |
copy! |