I have some log files with latitude and longitude data in different rows, i created a scripted field which concatenated the data of these two rows but i am unable to save this field as a geo_point to visualise it. How can i go about solving this issue.
It doesn't look like Painless supports geo as a primitive type, and Kibana only supports that type (in an even more simplified format, all number types are just "number").
Most likely you'll want to set this value at index time instead of trying to enhance it at query time. This is probably most easily done with an ingest pipeline. The gist is that you'd index documents into that pipeline, instead of directly into Elasticsearch, and let it enrich the document at index time. If you're just trying to concatenate two field values into a new field, that should be pretty easy to set up.
For existing documents, you can updating them with the Reindex API
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.