Skip to content

Instantly share code, notes, and snippets.

View drawks's full-sized avatar

Dave Rawks drawks

  • Oakland, California
View GitHub Profile
@drawks
drawks / gist:1556373
Created January 3, 2012 19:06 — forked from kimchy/gist:1556146
Disable the _all field
curl -XPUT 'http://localhost:9200/_template/template_logstash/' -d '
{
"template": "logstash-*",
"mappings": {
"_default_": {
"_all" : {"enabled" : false}
}
}
}'
@drawks
drawks / gist:1556336
Created January 3, 2012 18:59 — forked from kimchy/gist:1556171
optimize a logstash/elasticsearch index
curl -XPOST 'http://localhost:9200/logstash-2001.01.01/_optimize?max_num_segments=2'
@drawks
drawks / gist:1556276
Created January 3, 2012 18:47 — forked from kimchy/gist:1556146
Enable _source compression in elasticsearch
curl -XPUT 'http://localhost:9200/_template/template_logstash/' -d '
{
"template": "logstash-*",
"mappings": {
"_default_": {
"_source": { "compress": "true" },
}
}
}'