Skip to content

Instantly share code, notes, and snippets.

Verifying my Blockstack ID is secured with the address 1UamvF4dtrcfgqvXeXHS9k3jErYvYLj2C https://explorer.blockstack.org/address/1UamvF4dtrcfgqvXeXHS9k3jErYvYLj2C
Verifying my Blockstack ID is secured with the address 1UamvF4dtrcfgqvXeXHS9k3jErYvYLj2C https://explorer.blockstack.org/address/1UamvF4dtrcfgqvXeXHS9k3jErYvYLj2C
@stevendeboer
stevendeboer / logstash.conf
Last active December 28, 2015 00:09
Using anonymize filter to add checksum.
# Add field which is composed of multiple source fields.
filter {
mutate {
add_field => [ "hash", "%{field1}/%{field2}/%{field3}" ]
}
anonymize {
algorithm => "SHA1"
fields => [ "hash" ]
key => "keyvalue"
input {
udp {
type => sql
port => 516
format => json
}
}
output {
rabbitmq {
input {
udp {
type => eventlog
port => 515
format => json
}
}
output {
rabbitmq {
input {
udp {
type => syslog
port => 514
}
}
output {
rabbitmq {
exchange => "logstash-exchange"
user www-data;
worker_processes 4;
pid /var/run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
output {
elasticsearch {
type => "all"
embedded => false
host => "localhost"
port => "9300"
cluster => "elasticsearch"
node_name => "logstash"
}
}