Patrick,

Here's my template, along with where the _all field is disabled. You may 
wish to add this setting to your own template, and then also add the index 
setting to ignore malformed data (if someone's log entry occasionally slips 
in "null" or "no-data" instead of the usual numeric value):

{
  "automap" : {
    "template" : "logstash-*",
    "settings" : {
      *"index.mapping.ignore_malformed" : true*
    },
    "mappings" : {
      "_default_" : {
        "numeric_detection" : true,
        *"_all" : { "enabled" : false },*
        "properties" : {
          "message" : { "type" : "string" },
          "host" : { "type" : "string" },
          "UUID" : {  "type" : "string", "index" : "not_analyzed" },
          "logdate" : {  "type" : "string", "index" : "no" }
        }
      }
    }
  }
}

Brian

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/a145cb1e-4013-4a6b-a58d-9a42368d8107%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to