kibana-123
Version:
Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic
103 lines (102 loc) • 2.24 kB
JavaScript
module.exports = {
'settings': {
'index': {
'number_of_shards': 1,
'number_of_replicas': 0
},
'analysis': {
'analyzer': {
'url': {
'type': 'standard',
'tokenizer': 'uax_url_email',
'max_token_length': 1000
}
}
}
},
'mappings': {
'_default_': {
'dynamic_templates': [{
'string_fields': {
'mapping': {
'type': 'string',
'index': 'analyzed',
'fields': {
'raw': {
'index': 'not_analyzed',
'type': 'string',
'doc_values': true
}
}
},
'match_mapping_type': 'string',
'match': '*'
}
}],
'properties': {
'@timestamp': {
'type': 'date'
},
'id': {
'type': 'integer',
'index': true,
'include_in_all': false
},
'clientip': {
'type': 'ip'
},
'ip': {
'type': 'ip'
},
'memory': {
'type': 'double'
},
'referer': {
'type': 'string',
'index': 'not_analyzed'
},
'geo': {
'properties': {
'srcdest': {
'type': 'string',
'index': 'not_analyzed'
},
'dest': {
'type': 'string',
'index': 'not_analyzed'
},
'src': {
'type': 'string',
'index': 'not_analyzed'
},
'coordinates': {
'type': 'geo_point'
}
}
},
'meta': {
'properties': {
'related': {
'type': 'string'
},
'char': {
'type': 'string',
'index': 'not_analyzed'
},
'user': {
'properties': {
'firstname': {
'type': 'string'
},
'lastname': {
'type': 'integer',
'index': true
}
}
}
}
}
}
}
}
};