Skip to content

kalmas/logstash-filter-wkt_to_geojson

Repository files navigation

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

About

Logstash Filter to Convert WKT Shapes to GeoJSON

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages