{"id":13682487,"url":"https://github.com/barrycommins/spring-boot-splunk-sleuth-demo","last_synced_at":"2025-04-30T09:32:49.464Z","repository":{"id":21449061,"uuid":"92778828","full_name":"barrycommins/spring-boot-splunk-sleuth-demo","owner":"barrycommins","description":"Sample project to show log forwarding from a Spring Boot application to Splunk via a file forwarder.","archived":false,"fork":false,"pushed_at":"2023-03-06T03:56:38.000Z","size":31,"stargazers_count":17,"open_issues_count":3,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-02T13:34:13.108Z","etag":null,"topics":["sleuth","splunk","spring-boot"],"latest_commit_sha":null,"homepage":null,"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/barrycommins.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2017-05-29T22:08:28.000Z","updated_at":"2023-11-10T19:53:35.000Z","dependencies_parsed_at":"2024-08-02T13:22:11.997Z","dependency_job_id":"07e5f846-b51b-4719-8c93-27ea404a1c55","html_url":"https://github.com/barrycommins/spring-boot-splunk-sleuth-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrycommins%2Fspring-boot-splunk-sleuth-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrycommins%2Fspring-boot-splunk-sleuth-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrycommins%2Fspring-boot-splunk-sleuth-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrycommins%2Fspring-boot-splunk-sleuth-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barrycommins","download_url":"https://codeload.github.com/barrycommins/spring-boot-splunk-sleuth-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224206084,"owners_count":17273387,"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":["sleuth","splunk","spring-boot"],"created_at":"2024-08-02T13:01:46.929Z","updated_at":"2024-11-12T02:30:50.550Z","avatar_url":"https://github.com/barrycommins.png","language":"Java","funding_links":[],"categories":["Java"],"sub_categories":[],"readme":"# Spring Boot Sleuth Splunk demo  [![Build Status](https://travis-ci.com/barrycommins/spring-boot-splunk-sleuth-demo.svg?branch=master)](https://travis-ci.com/barrycommins/spring-boot-splunk-sleuth-demo)\nSample project to show log forwarding from a [Spring Boot](https://projects.spring.io/spring-boot/) application to [Splunk](https://www.splunk.com/) via a file forwarder.\n\n[Sleuth](https://cloud.spring.io/spring-cloud-sleuth/) is also added to generate IDs for each request\n\n## Build\n\nBuild the application as a [Docker](https://www.docker.com/) image using:\n\n```bash\nmvn clean package\n```\n\n## Run\n\nRun the included docker-compose file with:\n\n```bash\ndocker-compose up\n```\n\nThis will bring up three containers: A demo application, Splunk, and a Spunk Forwarder.\n\nLogs are forwarded to Splunk via a shared volume between the application and forwarder.\n\nIt is possible to send logs to Splunk via Docker's logging mechanism, but the goal here was to use the file forwarder to replicate a production setup.\n\n\n## Generate logs\n\nApplication startup will generate some logs.\n\nCalling the demo endpoint will generate some more logs, with Sleuth trace and Span Ids.\n\n```bash\ncurl http://localhost:8080?name=test\n```\n\n## View Logs\n\nGot to [Splunk login](http://localhost:8000) to view the logs.\n\nLogin is admin/password\n\n## Stop\n\nStop the containers and remove unused volumes with:\n\n```bash\ndocker-compose down -v\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarrycommins%2Fspring-boot-splunk-sleuth-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarrycommins%2Fspring-boot-splunk-sleuth-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarrycommins%2Fspring-boot-splunk-sleuth-demo/lists"}