Can anyone confirm my use of the _ttl feature?

It seems my settings are not working :frowning:

Doing a GET from logstash*/_settings give me this for the index created a
00:00 tonight.

logstash-2013.05.08: {
settings: {
index.cache.field.expire: 5m
index.refresh_interval: 5s
index.cache.filter.expire: 5m
index.store.compress.tv: true
index.store.compress.stored: true
index.number_of_shards: 5
index.number_of_replicas: 1
index.version.created: 200699
}
}

On Wednesday, May 8, 2013 8:41:20 AM UTC+2, Robert Campbell wrote:

My elasticsearch install is pretty simple, but I am having trouble
verifying the use of the _ttl parameter. It would seem from the
documentation it needs to be in the "mapping" part of the config file (
Elasticsearch Platform — Find real-time answers at scale | Elastic) I have
created the follwing config:
{
"template": "logstash*",
"settings": {
"index.cache.filter.expire": "5m",
"index.cache.field.expire": "5m",
"index.refresh_interval": "5s",
"index.store.compress.tv": true,
"index.store.compress.stored": true
"_ttl": {
"enabled": true,
"default": "7d"
},
},
"mappings": {
"default": {
"_all": {
"enabled": false
}
}
}
}

I tried using the _ttl field in the mappings part, but that was disastrous
(elasticsearch basically refused to create logstash* indexes, not good at
00:00 :frowning: ).

Thanks in advance for any replies.

Robert Campbell

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.