Hello,
what is the fastest way to insert geographic data on a Maps in Kibana (elastic cloud)?
I need to show a map with very specific points, maybe even with a custom icon and a label.
Thank you
Hello,
what is the fastest way to insert geographic data on a Maps in Kibana (elastic cloud)?
I need to show a map with very specific points, maybe even with a custom icon and a label.
Thank you
Go To Maps
Create
Elasticsearch Add Documents
Your index pattern will need to have either geo_point
or geo_shape
data.
Add Layer.
Then go in and customize the layer. Lots of options
There is ability to apply colors labels icons.
Aggregations filter etc.
Tool Tips
@accateo go play with it you're good at this stuff already
Good docs here
Then you can save that map and add it as a panel in a dashboard
I tried. I really don't understand what is the format for the data.
Is this the fastest way? Can I add a geo point via Dev Console in cloud? Can you tell me an example JSON?
Thanks
hi @accateo you have different options:
Load a file in GeoJSON format from your computer in Kibana Maps . You can create a sample dataset pretty quickly using for example http://geojson.io.
You can use Mapshaper to convert a CSV with coordinates in columns into a GeoJSON
Since Kibana 7.10, file importer in the Machine Learning application will automatically detect lon/lat
fields and will set up the pipeline and mappings to import a CSV with coordinates
You can always create your index manually (the mapping needs to be set beforehand) and use the regular API endpoints to add documents with geo_point
or geo_shape
fields. Check the docs for the different ways to define them.
How can I change color of the marker based on value?
What kind of field do I have to put in my index?
Thanks
Take a look at this doc. It really depends on the type of data you want to represent:
keyword
fields and they are represented by a palette of different colors. Example: flight positions by origin countrynumber
and they are represented as a range of colors. Example: flight positions by altitudeSame applies to aggregated data. If you have a number metric it should be a range (count, averages, etc) but if you do a top terms aggregation then your map should represent them using a palette of colors.
Ok, so there is no way to set a specific RGB color to every document.
Two last questions:
Thanks
Unfortunately not at this moment, see this other recent discussion
Yes, you can add tooltips, and they honor Kibana String field formatters so they can render URLs and images.
Not at this moment, sorry.
© 2020. All Rights Reserved - Elasticsearch
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.