{"id":17331158,"url":"https://github.com/medmes/elk-example","last_synced_at":"2026-04-08T22:31:17.650Z","repository":{"id":78239527,"uuid":"107849875","full_name":"medmes/elk-example","owner":"medmes","description":"Added this code after following a ELK tutorial","archived":false,"fork":false,"pushed_at":"2017-10-26T20:11:40.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-02T15:43:57.749Z","etag":null,"topics":["docker","elk","spring","springboot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/medmes.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-10-22T08:37:28.000Z","updated_at":"2019-02-04T15:43:35.000Z","dependencies_parsed_at":"2023-02-26T02:46:31.980Z","dependency_job_id":null,"html_url":"https://github.com/medmes/elk-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/medmes/elk-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medmes%2Felk-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medmes%2Felk-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medmes%2Felk-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medmes%2Felk-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/medmes","download_url":"https://codeload.github.com/medmes/elk-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medmes%2Felk-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31577444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["docker","elk","spring","springboot"],"created_at":"2024-10-15T14:53:38.372Z","updated_at":"2026-04-08T22:31:17.633Z","avatar_url":"https://github.com/medmes.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Log Management for Spring Boot Applications with Logstash, Elasticsearch and Kibana \n====================================================================================\n\nThe following instructions give you only a quick overview.\n\n## Clone the repository\n\n```shell\ngit clone http://github.com/denschu/elk-example\ncd elk-example\n```\n\n## Build the Example Application\n\n```shell\ncd loggging-example-batch\nmvn clean install\n```\n\n## Run the ELK Stack with Docker (Compose)\n\n```shell\ndocker-compose up\n```\n\n## Open Kibana\n\n```shell\nhttp://\u003cboot2docker-ip\u003e:5601\n```\n\n## Logback configuration\n\n```xml\n\u003cproperty name=\"FILE_LOG_PATTERN\" value=\"%d{yyyy-MM-dd HH:mm:ss.SSS} %5p ${PID:- } [%t] --- %-40.40logger{39} : %m%n%wex\"/\u003e\n```\n\nExample log statement\n\n```shell\n2014-10-10 16:34:07.089  INFO 11322 [main] --- s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8090/http\n```\n\n## Grok Pattern\n\nLogstash Grok Pattern\n\n```shell\n%{TIMESTAMP_ISO8601:logtime}%{SPACE}%{LOGLEVEL:loglevel} %{SPACE}%{NUMBER:pid}%{SPACE}---%{SPACE}%{SYSLOG5424SD:threadname}%{SPACE}%{JAVACLASSSHORT:classname}%{SPACE}:%{SPACE}%{GREEDYDATA:logmessage}\n```\nTested with Spring Boot 1.2.6.RELEASE\n\n```shell\nJAVACLASSSHORT (?:[\\.]?[a-zA-Z0-9-]+\\.)*[A-Za-z0-9$]+\n```\n\nOpen the preconfigured Logstash Dashboard in Kibana again and you will see upcoming logstatements\n\n```shell\nhttp://\u003cdocker-host-ip\u003e:5601\n```\n\n## See also\n\nhttp://logstash.net/docs/1.4.2/tutorials/getting-started-with-logstash\nhttp://www.elasticsearch.org/overview/kibana/installation/\nhttps://github.com/elasticsearch/logstash-forwarder\n\n## Generate SSL Certs for Logstash Forwarder\n\n```shell\nopenssl req -x509  -batch -nodes -newkey rsa:2048 -days 3065 -keyout logstash-forwarder.key -out logstash-forwarder.crt -subj /CN=logstash\n```\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmedmes%2Felk-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmedmes%2Felk-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmedmes%2Felk-example/lists"}