index naming was not using utc time zone.

This commit is contained in:
Boaz Leskes 2013-11-08 00:24:40 +01:00
parent ac7ef26211
commit 5577058be1

View file

@ -88,7 +88,7 @@ public class ESExporter extends AbstractLifecycleComponent<ESExporter> implement
hosts = settings.getAsArray("hosts", new String[]{"localhost:9200"});
indexPrefix = settings.get("index.prefix", "marvel");
String indexTimeFormat = settings.get("index.timeformat", "YYYY.MM.dd");
indexTimeFormatter = DateTimeFormat.forPattern(indexTimeFormat);
indexTimeFormatter = DateTimeFormat.forPattern(indexTimeFormat).withZoneUTC();
timeout = (int) settings.getAsTime("timeout", new TimeValue(6000)).seconds();