Hello,
Hopefully this is an easy answer but not a stupid question. I am fairly new to the Elastick Stack in general but learning my way around.
I am attempting to get a Coordinate Map visualization using the GeoIP data from RDP logins. I have the winlogbeat configured to send the data to logstash and logstash configured to do the geoip lookup on the source ip which is all working. I got that far following the guide here:
However the Index Pattern does not contain a geo_point field and only contains the latitude and longitude in 4 "number" type fields
From the guide and from what i have read and determined i need to setup a new dymanic mapping called geoip.location of the geo_point type containing the sub fields (2 of the ones above) but i have been unable to do so. I found some code below which seems close but fails.
can you explain exactly what you refer to when it 'fails'? in your above post? Do you get an exception? Do you get an error when applying the template or do you get an error when indexing the document?
Also note that creating a template does not mean it is applied immediately. You have to create a new index first in order for this to be applied.
Here is how i configured the logstash.conf, it was slightly different than the walkthrough but needed as per the JSON field I had coming in that contained the source IP.
can you please paste the snippets using markdown, the images are super hard to read and search and grep through. Thanks.
What Elasticsearch version are you using? Remember that from version 7 onwards there are no types anymore and make sure you pick the right version in the documentation as well.
I can't see the template you are trying to put, but try to omit the _doc part of the template and see if that works. If not, please paste the full command of putting the template here as well in a snippet.
Alexander,
I am not sure what you mean, was the guide updated? The commands in the guide look the same so i dont know what may have changed or "refreshed".
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.