Hello Guy and Gals. I am rather new and think I am missing something simplistic. I am running BRO IDS, grabbing the connection log file with logstash and sending it to my ES cluster to index => "logstash-bro-conn-%{+YYYY.MM.dd}"
. I tried to created a template called logstash-bro-conn to specify the field types that are coming from the bro log to set the field mapping. I am trying to have this template apply to the new daily index that is created "logstash-bro-conn-YYYYMMDD"
I created the template with the following
_PUT template/logstash-bro-conn
{
"order": 1,
"template" : "logstash-bro-conn-*",
"settings": {
"index": {
"mappings": {
"ts": { "type": "date" },
"uid": { "type": "string" },
"id_resp_h": { "type": "ip" },
"id_resp_p": { "type": "int" },
"id_orig_h": { "type": "ip" },
"id_orig_p": { "type": "int" },
"proto": { "type": "string" },
"duration": { "type": "long" },
"local_orig": { "type": "bool" },
"conn_state": { "type": "string" },
"history": { "type": "string" },
"local_resp": { "type": "bool" },
"missed_bytes": { "type": "byte" },
"orig_bytes": { "type": "byte" },
"orig_cc": { "type": "string" },
"orig_ip_bytes": { "type": "byte" },
"orig_pkts": { "type": "long" },
"resp_bytes": { "type": "byte" },
"resp_cc": { "type": "string" },
"resp_ip_bytes": { "type": "byte" },
"resp_pkts": { "type": "long" },
"sensorname": { "type": "string" },
"service": { "type": "string" },
"tunnel_parents": { "type": "string" }
},
"refresh_interval": "30s",
"number_of_shards": "2",
"number_of_replicas": "2"
},