Am new to the Elastic Stack and my 1st project with it is to analyze Netflow data from a Cisco ASA which actually pushes out NSEL as opposed to regular Netflow [v5,9] packets.
The problem that I am running into is that the index pulled into Kibana doesn't seem classify the 'type' within each property correctly.
For example, flow_seq_number, I set the type as a 'long', yet Kibana is showing the type as a 'number'
Each IP address property is loading into Kibana as type 'string'
I included the mappings below and would appreciate any thoughts on how to fix this.
Regards.
curl -XPUT localhost:9200/_template/logstash_netflow-9995 -d '{
"template" : "logstash_netflow-9995*",
"settings": {
"index.refresh_interval": "5s"
},
"mappings" : {
"default" : {
"_all" : {"enabled" : false},
"properties" : {
"@version": { "index": "analyzed", "type": "integer" },
"@timestamp": { "index": "analyzed", "type": "date" },
"host": {"index": "analyzed", "type": "ip"},
"netflow": {
"dynamic": true,
"type": "object",
"properties": {
"version": {
"index": "not_analyzed",
"type": "integer"
},
"flow_seq_num": {
"index": "not_analyzed",
"type": "long"
},
"flowset_id": {
"index": "not_analyzed",
"type": "long"
},
"nf_f_conn_id": {
"index": "not_analyzed",
"type": "long"
},
"nf_f_src_addr_ipv4": {
"index": "analyzed",
"type": "ip"
},
"nf_f_src_port": {
"index": "analyzed",
"type": "long"
},
"nf_f_src_intd_id": {
"index": "not_analyzed",
"type": "long"
},
"nf_f_dst_addr_ipv4": {
"index": "analyzed",
"type": "ip"
},
"nf_f_dst_port": {
"index": "analyzed",
"type": "long"
},
"nf_f_dst_intf_id": {
"index": "not_analyzed",
"type": "long"
},
"nf_f_protocol": {
"index": "not_analyzed",
"type": "integer"
},
"nf_f_ingress_acl_id": {
"index": "not_analyzed",
"type": "string"
},
"nf_f_egress_acl_id": {
"type": "string",
"index": "not_analyzed"
},
"nf_f_fwd_flow_delta_bytes": {
"type": "long",
"index": "analyzed"
},
"nf_f_rev_flow_delta_bytes": {
"type": "long",
"index": "analyzed"
},
"nf_f_icmp_code": {
"type": "long",
"index": "analyzed"
},
"nf_f_icmp_type": {
"type": "long",
"index": "analyzed"
},
"nf_f_event_time_msec": {
"type": "string",
"index": "analyzed"
},
"nf_f_flow_create_time_msec": {
"type": "date",
"index": "analyzed"
},
"nf_f_xlate_dst_addr_ipv4": {
"type": "ip",
"index": "analyzed"
},
"nf_f_xlate_dst_port": {
"type": "long",
"index": "analyzed"
},
"nf_f_xlate_src_addr_ipv4": {
"type": "ip",
"index": "analyzed"
},
"nf_f_xlate_src_port": {
"type": "long",
"index": "analyzed"
}
}
}
}
}
}
}'