Skip to content

Instantly share code, notes, and snippets.

@charles-dyfis-net
Created February 22, 2011 07:35
Show Gist options
  • Save charles-dyfis-net/838337 to your computer and use it in GitHub Desktop.
Save charles-dyfis-net/838337 to your computer and use it in GitHub Desktop.
ElasticSearch logstash river config via curl
curl -v -XPUT 'localhost:9200/_river/logstash/_meta' -d '{
"type" : "rabbitmq",
"rabbitmq" : {
"host" : "192.168.123.8",
"port" : 5672,
"user" : "logstash",
"pass" : "logstash",
"vhost" : "logstash",
"exchange" : "parsed_logs",
"exchange_type" : "fanout",
"queue" : "elasticsearch",
"routing_key" : "elasticsearch"
},
"index" : {
"bulk_size" : 100,
"bulk_timeout" : "10ms"
},
"settings" : {
"@source": { "type" : "string" },
"@source_host": { "type" : "string" },
"@source_path": { "type" : "string" },
"@timestamp": { "type" : "date" },
"@tags": { "type" : "string" },
"@message": { "type" : "string" },
"@fields": { "type" : "object", "properties": { "HOSTNAME": { "type": "string" } } }
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment