Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 769 Bytes

README.asciidoc

File metadata and controls

46 lines (34 loc) · 769 Bytes

WKT to GeoJSON Logstash Filter

Parses WKT encoded geography on Logstash event and converts it to GeoJSON.

filter {
    wkt_to_geojson {
        field => "wkt"
        target => "geo_json"
        tag_on_parse_failure => [ "wkt_paring_error" ]
    }
}

To Use

  • Install Dependencies

bundle install
  • Test

bundle exec rspec
  • Build Gem

gem build logstash-filter-wkt_to_geojson.gemspec
  • Install Gem as Logstash plugin

logstash-plugin install logstash-filter-wkt_to_geojson-0.1.0.gem