I am using the following index template for a specific field "result" :

curl -XPUT localhost:9200/_template/graylog -d '
{
  "template" : "graylog_*",
  "mappings" : {
      "result" : { "type" : "string" }
  }
}
'

But when I am trying to cycle the index manually the following error appear.
I can not see what I am doing wrong. 

* I suppose that the same error will appear when the index is cycled 
automatically.

Thank you,
Lefteris.



2016-01-04_10:19:43.32147 INFO  [DeflectorResource] Cycling deflector. 
Reason: REST request.
2016-01-04_10:19:43.33468 INFO  [Deflector] Cycling deflector to next index 
now.
2016-01-04_10:19:43.34045 INFO  [Deflector] Cycling from <graylog_22> to 
<graylog_23>
2016-01-04_10:19:43.34374 INFO  [Deflector] Creating index target 
<graylog_23>...
2016-01-04_10:19:43.36150 ERROR [AnyExceptionClassMapper] Unhandled 
exception in REST resource
2016-01-04_10:19:43.36636 
org.elasticsearch.index.mapper.MapperParsingException: mapping [result]
2016-01-04_10:19:43.36905       at 
org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$2.execute(MetaDataCreateIndexService.java:394)
2016-01-04_10:19:43.36954       at 
org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:374)
2016-01-04_10:19:43.37241       at 
org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:204)
2016-01-04_10:19:43.37600       at 
org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:167)
2016-01-04_10:19:43.37818       at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
2016-01-04_10:19:43.37956       at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
2016-01-04_10:19:43.37993       at java.lang.Thread.run(Thread.java:745)
2016-01-04_10:19:43.38073 Caused by: 
org.elasticsearch.index.mapper.MapperParsingException: Root type mapping 
not empty after parsing! Remaining fields:   [type : string]
2016-01-04_10:19:43.38133       at 
org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:278)
2016-01-04_10:19:43.38357       at 
org.elasticsearch.index.mapper.DocumentMapperParser.parseCompressed(DocumentMapperParser.java:192)
2016-01-04_10:19:43.38361       at 
org.elasticsearch.index.mapper.MapperService.parse(MapperService.java:449)
2016-01-04_10:19:43.38446       at 
org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:307)
2016-01-04_10:19:43.38515       at 
org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$2.execute(MetaDataCreateIndexService.java:391)
2016-01-04_10:19:43.38717       ... 6 more

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/7937fa54-5a35-4b93-9be5-1c4a5b92882d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to