http://semicomplete.com/files/logstash/logstash-1.1.0beta6-monolithic.jar
java -jar logstash-1.1.0beta6-monolithic.jar agent -c logstash-sender.conf
java -jar logstash-1.1.0beta6-monolithic.jar agent -c logstash-receiver.conf
## place this file to same directory of `Vagrantfile' then simply require "snap.rb" in Vagrantfile | |
module Snap | |
module VBox | |
class SnapShot | |
require "forwardable" | |
extend Forwardable | |
def_delegators :@snap, :name, :uuid, :time_stamp | |
@@snaps = [] | |
class << self |
<?php | |
/** | |
* Super-simple AWS CloudFront Invalidation Script | |
* | |
* Steps: | |
* 1. Set your AWS access_key | |
* 2. Set your AWS secret_key | |
* 3. Set your CloudFront Distribution ID | |
* 4. Define the batch of paths to invalidate | |
* 5. Run it on the command-line with: php cf-invalidate.php |
http://semicomplete.com/files/logstash/logstash-1.1.0beta6-monolithic.jar
java -jar logstash-1.1.0beta6-monolithic.jar agent -c logstash-sender.conf
java -jar logstash-1.1.0beta6-monolithic.jar agent -c logstash-receiver.conf
#! /usr/bin/env python | |
import redis | |
import random | |
import pylibmc | |
import sys | |
r = redis.Redis(host = 'localhost', port = 6389) | |
mc = pylibmc.Client(['localhost:11222']) |
#!/usr/bin/env ruby | |
# s3-delete-bucket.rb | |
# Fog-based script for deleting large Amazon AWS S3 buckets (~100 files/second) | |
# Forked from this excellent script: https://github.com/SFEley/s3nuke | |
require 'rubygems' | |
require 'thread' | |
require 'fog' |
# Nginx - logrotate & upload to S3 | |
0 0 * * * /usr/sbin/logrotate /etc/logrotate.d/nginx | |
15 0 * * * s3cmd put /var/log/nginx/access.log-`date +"\%Y\%m\%d"`.gz s3://$LOGS_BUCKET_NAME/nginx-access/`date +"dt=\%Y\%m\%d"`/`hostname -s`.access.log-`date +"\%Y\%m\%d"`.gz |
#!/bin/bash | |
# herein we backup our indexes! this script should run at like 6pm or something, after logstash | |
# rotates to a new ES index and theres no new data coming in to the old one. we grab metadatas, | |
# compress the data files, create a restore script, and push it all up to S3. | |
TODAY=`date +"%Y.%m.%d"` | |
INDEXNAME="logstash-$TODAY" # this had better match the index name in ES | |
INDEXDIR="/usr/local/elasticsearch/data/logstash/nodes/0/indices/" | |
BACKUPCMD="/usr/local/backupTools/s3cmd --config=/usr/local/backupTools/s3cfg put" | |
BACKUPDIR="/mnt/es-backups/" | |
YEARMONTH=`date +"%Y-%m"` |
#!/usr/bin/ruby | |
# | |
# Enable/disable host and or service notifications | |
# | |
require 'net/http' | |
require 'optparse' | |
require 'pp' | |
require 'socket' |
#!/usr/bin/env ruby | |
require 'fog' | |
require 'trollop' | |
require 'yaml' | |
STDOUT.sync = true |
Wes Winham [email protected]
There are many tutorials floating around the web that almost get you a dynamic VPN in EC2. The goal of this tutorial is to be a one-stop-shop for this specific setup.