Good afternoon,
I continue to receive the error " index pattern does not contain any of the following field types: geo_point " when trying to map via tile map. Here is what my data looks like:
{
"_index": "combine-inbound-2017.10.09",
"_type": "IPv4",
"_id": "AV8CyL9uPzFVCkQYAsCd",
"_score": null,
"_source": {
"message": "\"216.218.206.90\",\"IPv4\",\"inbound\",\"http://www.ciarmy.com/list/ci-badguys.txt\",\"\",\"2017-10-09\"\r",
"@version": "1",
"@timestamp": "2017-10-09T20:17:11.202Z",
"path": "/opt/threatintel/combine/harvest.csv",
"host": "atropos",
"entity": "216.218.206.90",
"type": "IPv4",
"direction": "inbound",
"source": "http://www.ciarmy.com/list/ci-badguys.txt",
"notes": "",
"date": "2017-10-09",
"geoip": {
"ip": "216.218.206.90",
"country_code2": "US",
"country_code3": "USA",
"country_name": "United States",
"continent_code": "NA",
"region_name": "CA",
"city_name": "Fremont",
"postal_code": "94539",
"latitude": 37.5497,
"longitude": -121.96209999999999,
"dma_code": 807,
"area_code": 510,
"timezone": "America/Los_Angeles",
"real_region_name": "California",
"location": [
-121.96209999999999,
37.5497
]
}
},
"fields": {
"date": [
1507507200000
],
"@timestamp": [
1507580231202
]
},
"sort": [
1507580231202
]
}
Here is logstash conf
input {
file {
path => "/opt/threatintel/combine/harvest.csv"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
filter {
csv {
separator => ","
columns => ["entity","type","direction","source","notes","date"]
}
geoip {
source => "entity"
# target => "geoip"
database => "/etc/logstash/GeoLiteCity.dat"
# add_field => [ "[geoip][coordinates]", "%{[geoip][longitude]}" ]
# add_field => [ "[geoip][coordinates]", "%{[geoip][latitude]}" ]
}
# mutate {
# convert => [ "[geoip][coordinates]", "float"]
# }
}
output {
if [direction] == "inbound" {
elasticsearch {
hosts => "http://localhost:9200"
index => "combine-inbound-%{+YYYY.MM.dd}"
}
stdout {}
}
if [direction] == "outbound" {
elasticsearch {
hosts => "http://localhost:9200"
index => "combine-outbound-%{+YYYY.MM.dd}"
}
stdout {}
}
}
top of csv file:
"entity","type","direction","source","notes","date" "118.97.147.26","IPv4","inbound","http://www.projecthoneypot.org/list_of_ips.php?rss=1","","2017-10-08"
Thanks in advance