Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "order": -1,
- "version" : 60004,
- "template": "es_fields_mapping*",
- "settings": {
- "index.number_of_shards": 1,
- "index.number_of_replicas": 1,
- "index.refresh_interval": "30s"
- },
- "mappings": {
- "_default_": {
- "dynamic_templates": [
- {
- "message_field": {
- "mapping": {
- "norms": false,
- "type": "text"
- },
- "match_mapping_type": "string",
- "match": "message"
- }
- },
- {
- "time_field": {
- "match_mapping_type": "date",
- "match": "@timestamp",
- "mapping": {
- "type": "date",
- "format": "dd/MMM/YYYY:HH:mm:ss Z||dd/MMM/YYYY:HH:mm:ss||dd/MM/YYYY:HH:mm:ss Z||dd/MM/YYYY:HH:mm:ss||dd/MM/YYYY:H:m:s||dd/MM/YYYY:HH:mm:ss Z||dd/MM/YYYY:H:m:s Z||YYYY/MM/dd H:m:s||YYYY/MM/dd H:m:s Z||MM/dd H:m:s||MM/dd HH:mm:ss||dd/MMM/YYYY:H:m:s Z||EEE MMM dd H:m:s YYYY||MMM d HH:mm:ss||MMM dd HH:mm:ss"
- }
- }
- },
- {
- "byte_field": {
- "match_mapping_type": "long",
- "match": "bytes",
- "mapping": {
- "type": "long"
- }
- }
- },
- {
- "string_fields": {
- "match_mapping_type": "string",
- "match": "*",
- "mapping": {
- "norms": false,
- "type": "text",
- "fields": {
- "keyword": {
- "ignore_above": 256,
- "type": "keyword"
- }
- }
- }
- }
- }
- ],
- "properties": {
- "geoip": {
- "dynamic": true,
- "properties": {
- "location": {
- "type": "geo_point"
- },
- "ip": {
- "type": "ip"
- },
- "continent_code": {
- "type": "keyword"
- },
- "country_name": {
- "type": "keyword"
- },
- "latitude": {
- "type": "half_float"
- },
- "longitude": {
- "type": "half_float"
- }
- }
- },
- "@version": {
- "type": "keyword"
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement