{"id":13627432,"url":"https://github.com/logzio/sawmill","last_synced_at":"2025-04-21T15:31:21.039Z","repository":{"id":40269739,"uuid":"69273058","full_name":"logzio/sawmill","owner":"logzio","description":"Sawmill is a JSON transformation Java library","archived":false,"fork":false,"pushed_at":"2024-02-18T07:59:17.000Z","size":113170,"stargazers_count":109,"open_issues_count":7,"forks_count":24,"subscribers_count":67,"default_branch":"master","last_synced_at":"2024-02-18T08:35:48.616Z","etag":null,"topics":["geoip","grok","json","maxmind","mustache","opensource","transformation","user-agent"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/logzio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-09-26T17:10:59.000Z","updated_at":"2024-04-15T12:10:14.750Z","dependencies_parsed_at":"2024-04-15T12:20:10.338Z","dependency_job_id":null,"html_url":"https://github.com/logzio/sawmill","commit_stats":null,"previous_names":[],"tags_count":49,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logzio%2Fsawmill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logzio%2Fsawmill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logzio%2Fsawmill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logzio%2Fsawmill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logzio","download_url":"https://codeload.github.com/logzio/sawmill/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250080621,"owners_count":21371540,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["geoip","grok","json","maxmind","mustache","opensource","transformation","user-agent"],"created_at":"2024-08-01T22:00:34.025Z","updated_at":"2025-04-21T15:31:20.542Z","avatar_url":"https://github.com/logzio.png","language":"Java","funding_links":[],"categories":["Projects by main language","Transformations"],"sub_categories":["java"],"readme":"![Sawmill Logo](sawmill-logo.png)\n\n[![Build Status](https://github.com/logzio/sawmill/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/logzio/sawmill/actions/workflows/build.yml)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.logz.sawmill/sawmill/badge.svg)](http://mvnrepository.com/artifact/io.logz.sawmill/sawmill)\n\n*Update: June 25, 2020*\nThe 2.0 release of Sawmill introduces a breaking change to the *GeoIpProcessor* to comply with the updated license of the MaxMind Lite database.\nSee https://github.com/logzio/sawmill/wiki/GeoIp-Processor for additional details.\n\nSawmill is a JSON transformation open source library. \n\nIt enables you to enrich, transform, and filter your JSON documents. \n\nUsing Sawmill pipelines you can integrate your favorite groks, geoip, user-agent resolving, add or remove fields/tags and more in a descriptive manner, using configuration files or builders, in a simple DSL, allowing you to dynamically change transformations.\n\n## Download\n\nGet Sawmill Java via Maven:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.logz.sawmill\u003c/groupId\u003e\n    \u003cartifactId\u003esawmill-core\u003c/artifactId\u003e\n    \u003cversion\u003e2.0.21\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nor Gradle:\n\n```gradle\ncompile 'io.logz.sawmill:sawmill-core:2.0.21'\n```\n\n## Documentation\n\nThe full Sawmill documentation [can be found here](https://github.com/logzio/sawmill/wiki).\n\n## Simple configuration example\n\n```json\n{\n  \"steps\": [\n    {\n      \"grok\": {\n        \"config\": {\n          \"field\": \"message\",\n          \"overwrite\": [\n            \"message\"\n          ],\n          \"patterns\": [\n            \"(%{IPORHOST:client_ip}|-) %{USER:ident} %{USER:auth} \\\\[%{HTTPDATE:timestamp}\\\\] \\\\\\\"(?:%{WORD:verb} %{NOTSPACE:request}(?: HTTP/%{NUMBER:httpversion:float})?|%{DATA:rawrequest})\\\\\\\" %{NUMBER:response:int} (?:%{NUMBER:bytes:float}|-) B %{DATA:thread} %{NUMBER:response_time:float} ms %{DATA:servername} %{DATA:client_id:int}(\\\\;%{NOTSPACE})? %{DATA:device_id} %{DATA}\"\n          ]\n        }\n      }\n    },\n    {\n      \"removeField\": {\n        \"config\": {\n          \"path\": \"message\"\n        }\n      }\n    }\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogzio%2Fsawmill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogzio%2Fsawmill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogzio%2Fsawmill/lists"}