I used to have an attribute called geoip.location and it’s data type is geo_point. I am using this geoip.location to map the geopoint in the Coordinate Map. It was working perfectly.
Suddenly somehow I found the geoip.location is gone. Instaed of geoip.location, I got geoip.geo.location.lat and geoip.geo.location.lon but I can’t use the Coordinate Map anymore.
Can someone help me? How can I get the geoip.location back or how can I get the Coordinate Map working?
The new format for your location data consists of two separate fields: geoip.geo.location.lat and geoip.geo.location.lon . This is different from the previous format you were using for geo_point, which had the entire location data stored in a single field called geoip.location.
Because we cannot update the mapping for an existing index, you can reindex your data with correct mapping.
my destination index name has , like logstash-data-. The * stands for the date.
While I try to create a mapping for it, it shows " reason": “Invalid index name [logstash-data-*], must not contain the following characters [ , ", *, \, <, |, , >, /, ?]”,"
Is there any way I can create a mapping for such index?
you can try to use an index template. An index template is a way to define settings and mappings for future indices that match a specified pattern. When you create an index that matches the template pattern, OpenSearch applies the template to the new index and uses the settings and mappings specified in the template.