I'm unable to create "Maps" visualization. I get the error "Selected index pattern does not contain source and destination fields." I'm on version 7.13.2 ELK
I used geoip to define the source and destination IP fields as below :-
if "BackendIP" not in [tags]
{
geoip
{
target => "Src_IP"
source => "Fwd_Client_IP"
tag_on_failure => ["IP-lookup-failed"]
}
geoip
{
target => "Dst_IP"
source => "Forward_IP"
tag_on_failure => ["IP-lookup-failed"]
}
I read some articles about creating a geo_point , but since geoip already creates "lon" and "lat" values, doesn't already have what it needs to create a geo_point? If not, could you help me how to create a geo_point ? can it created on logstash config ? or elasticsearch ?
What is the mapping output for the index. The lat and lon fields must be mapped as geo_point in order to be used in the maps application. If they are just mapped as numbers then you do not have a spatial index and can not use the data in maps.
After index creation and before inserting documents, add geo_point mapping to your index by running a command like the one below in Kibana => dev tools => console.
awesome I was able to create . But i still get same error "Selected index pattern does not contain source and destination fields." , seems i'm missing something .
i changed "location" to "geolocation" and it worked , the error has disappeared. However it shows that no results , even after ingesting some logs . Does changing from location to geolocation have some significance ?
PUT logstash_geo_ghost1/_mapping
{
"properties":{
"geolocation": {
"type":"geo_point"
}
}
The source-and-destination selection in those two dropdowns should both be a different field of type geo_point. It looks like you are using the same field location.
Also a few other things to check:
make sure that the data is indexed correctly (e.g. use Discover to check you have two geo_point fields with actual lat/lons,
make sure the time-filter (top right, in Kibana) is large enough for your data-range
oh okay, makes sense . To create geo_point for source and destination, i need to have the lon/lat values in a single field,correct ? how do i create it ? i tried adding a field inside geoip such as the one below , but it did not work .should i use a separate mutate filter for this ?
sample config where lat and lon values are in the same field and converted to geo point , this conversion was done before any data was pushed/ingested into it
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.