---
title: "ElasticSearch (7)  default index mapping"
author: "ilnba"
date: "2012-12-26T13:54:11Z"
tags: []
categories: ["企业架构"]
slug: "elasticsearch-7-default-index-mapping"
draft: false
lastmod: "2012-12-26T13:52:18Z"
id: 1754405
url: "https://ilnba.iteye.com/blog/1754405"
---

**default mapping file : $ES\_HOME/conf/default-mapping.json**

 

{

  "\_default\_" : {

      "\_ttl" : {

        "enabled" : true,

        "default" : 7776000000

      },

      "\_source" : {

        "enabled" : false

      },

      "properties" : {

        "env" : {

          "type" : "string",

          "index" : "not\_analyzed"

        },

        "eventbody" : {

          "type" : "string"

        },

        "hostname" : {

          "type" : "string",

          "index" : "not\_analyzed"

        },

        "logfilename" : {

          "type" : "string",

          "index" : "not\_analyzed"

        },

        "logpath" : {

          "type" : "string",

          "index" : "not\_analyzed"

        },

        "logtype" : {

          "type" : "string",

          "index" : "not\_analyzed"

        },

        "timestamp" : {

          "type" : "long",

          "ignore\_malformed" : false

        },

        "nanotime" : {

          "type" : "long",

          "ignore\_malformed" : false

        }

      }

  }

}