GET _search
{"query": {"match_all": {}
}
}
GET/_template/*PUT/_template/hs_server_template
{"order": 0,"version": 60001,"index_patterns": ["hs_server*"],"settings": {"index": {"refresh_interval": "5s"}
},"mappings": {"doc": {"dynamic_templates": [
{"message_field": {"path_match": "message","match_mapping_type": "string","mapping": {"type": "text","norms": false}
}
},
{"string_fields": {"match": "*","match_mapping_type": "string","mapping": {"type": "text","norms": false,"fields": {"keyword": {"type": "keyword","ignore_above": 256}
}
}
}
}
],"properties": {"@timestamp": {"type": "date"},"@version": {"type": "keyword"},"ErrorCode": {"type": "integer"},"geoip": {"dynamic": true,"properties": {"ip": {"type": "ip","latitude": {"type": "half_float"},"longitude": {"type": "half_f