{"id":18972390,"url":"https://github.com/wuriyanto48/spring-boot-starter-jvmstash","last_synced_at":"2026-05-01T02:33:35.036Z","repository":{"id":129543153,"uuid":"262864260","full_name":"wuriyanto48/spring-boot-starter-jvmstash","owner":"wuriyanto48","description":"enhancement jvm-stash(https://github.com/wuriyanto48/jvm-stash) for spring boot","archived":false,"fork":false,"pushed_at":"2020-10-13T21:53:20.000Z","size":16,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-02T12:03:22.998Z","etag":null,"topics":["elastic","elk-stack","java","jvm","logstash","springboot","springframework"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wuriyanto48.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-05-10T19:52:40.000Z","updated_at":"2020-05-12T21:00:00.000Z","dependencies_parsed_at":"2023-05-26T16:15:31.820Z","dependency_job_id":null,"html_url":"https://github.com/wuriyanto48/spring-boot-starter-jvmstash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wuriyanto48/spring-boot-starter-jvmstash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuriyanto48%2Fspring-boot-starter-jvmstash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuriyanto48%2Fspring-boot-starter-jvmstash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuriyanto48%2Fspring-boot-starter-jvmstash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuriyanto48%2Fspring-boot-starter-jvmstash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wuriyanto48","download_url":"https://codeload.github.com/wuriyanto48/spring-boot-starter-jvmstash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuriyanto48%2Fspring-boot-starter-jvmstash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32483406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["elastic","elk-stack","java","jvm","logstash","springboot","springframework"],"created_at":"2024-11-08T15:08:21.789Z","updated_at":"2026-05-01T02:33:35.030Z","avatar_url":"https://github.com/wuriyanto48.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Spring Boot Starter JVM Stash (Logstash Client Library for Spring Boot)\n\nhttps://github.com/wuriyanto48/jvm-stash for Spring Boot.\n\n#### Usage\n\nAdd this config to your `application.properties`\n```editorconfig\nstash.host=localhost\nstash.port=5000\nstash.secure=true\nstash.keyStorePath=server.p12\nstash.keyStorePassword=damn12345\n```\n\nJust `Autowired` the `StashTemplate` and now ready to go\n```java\n@RestController\npublic class IndexController {\n\n    private final static Logger LOGGER = Logger.getLogger(IndexController.class.getName());\n\n    @Autowired\n    private StashTemplate stashTemplate;\n\n    @GetMapping(\"/\")\n    public String index(HttpServletRequest request) {\n\n        LOGGER.addHandler(new StashLogHandler(stashTemplate.getStash()));\n\n        LOGGER.log(Level.INFO, request.getMethod());\n\n        return \"hello\";\n    }\n}\n```\n\nExample Result Data\n```json\n{\n        \"_index\" : \"activity_log\",\n        \"_type\" : \"_doc\",\n        \"_id\" : \"n1cYAHIBVwCwW5urEtlM\",\n        \"_score\" : 1.0,\n        \"_source\" : {\n          \"@version\" : \"1\",\n          \"@timestamp\" : \"2020-05-10T19:37:56.956Z\",\n          \"port\" : 60958,\n          \"host\" : \"gateway\",\n          \"message\" : {\n            \"sourceClassName\" : \"com.wuriyanto.application.IndexController\",\n            \"sequenceNumber\" : 13,\n            \"instant\" : {\n              \"nano\" : 906778000,\n              \"epochSecond\" : 1589139476\n            },\n            \"message\" : \"GET\",\n            \"resourceBundleName\" : null,\n            \"parameters\" : null,\n            \"resourceBundle\" : null,\n            \"threadID\" : 28,\n            \"sourceMethodName\" : \"index\",\n            \"level\" : {\n              \"name\" : \"INFO\",\n              \"localizedName\" : \"INFO\",\n              \"resourceBundleName\" : \"sun.util.logging.resources.logging\"\n            },\n            \"loggerName\" : \"com.wuriyanto.application.IndexController\",\n            \"thrown\" : null,\n            \"millis\" : 1589139476906\n          }\n        }\n      }\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwuriyanto48%2Fspring-boot-starter-jvmstash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwuriyanto48%2Fspring-boot-starter-jvmstash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwuriyanto48%2Fspring-boot-starter-jvmstash/lists"}