Hi guys, I am ELK noob willing to learn.
I've got a document
[...]
"_source": {
"network": {
"type": "ipv4"
},
"interface_name": "LAN",
"destination": {
"geo": {
"country_name": "United States",
"region_code": "CA",
"continent_code": "NA",
"city_name": "Los Angeles",
"region_name": "California",
"longitude": -118.2578,
"latitude": 34.0549,
"dma_code": 803,
"location": {
"lon": -118.2578,
"lat": 34.0549
},
"ip": "185.236.xxx.xxx",
"postal_code": "90014",
"country_code3": "US",
"timezone": "America/Los_Angeles",
"country_code2": "US"
},
"as": {
"number": 9009,
"ip": "185.236.xxx.xxx",
"organization": {
"name": "xxx Ltd"
}
},
"ip": "185.236.xxx.xxx",
"port": "63915"
},
[...]
and I do this in a Dev Tool:
PUT _template/pfsense
{
"index_patterns": [
"logstash-*"
],
"mappings": {
"properties": {
"destination": {
"properties": {
"geo": {
"dynamic": true,
"properties": {
"ip": {
"type": "ip"
},
"location": {
"type": "geo_point"
}
}
},
"as": {
"dynamic": true,
"properties": {
"ip": {
"type": "ip"
},
"location": {
"type": "geo_point"
}
}
}
}
},
"source": {
"properties": {
"geo": {
"dynamic": true,
"properties": {
"ip": {
"type": "ip"
},
"location": {
"type": "geo_point"
}
}
},
"as": {
"dynamic": true,
"properties": {
"ip": {
"type": "ip"
},
"location": {
"type": "geo_point"
}
}
}
}
}
}
}
}
it accepts, I re-create indexes and... No mapping. No GeoHash generated neither for Source, nor for Destination... What am I doing wrong?