Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
themeEmacs
public class Location implements Serializable {

	private Double lat;

	private Double lon;
	

	public Double getLat() {
		return lat;
	}

	public void setLat(Double lat) {
		this.lat = lat;
	}

	public Double getLon() {
		return lon;
	}

	public void setLon(Double lon) {
		this.lon = lon;
	}

}


public class InFlowLog implements Serializable {
  private Location location;
}


키바나에서 geopoint 맵핑명령실행

Code Block
languagejava
themeEmacs
PUT my_indexput logstash-idxname
{
    "mappings": {
      "_doc": {
              "properties": {
              "location": {
                "type": "geo_point"
              }
            }
      }
    }
}

  • 맵핑설정을 먼저하는게 좋다.


성공시

Image Added


Links:

...