{"id":22712050,"url":"https://github.com/buildit/websphere_elk_test","last_synced_at":"2025-03-29T22:21:26.349Z","repository":{"id":78235783,"uuid":"85834419","full_name":"buildit/websphere_elk_test","owner":"buildit","description":null,"archived":false,"fork":false,"pushed_at":"2017-03-23T12:46:30.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-02-04T23:31:07.347Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/buildit.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-03-22T14:00:35.000Z","updated_at":"2017-03-22T14:04:51.000Z","dependencies_parsed_at":"2023-03-18T05:15:28.586Z","dependency_job_id":null,"html_url":"https://github.com/buildit/websphere_elk_test","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/buildit%2Fwebsphere_elk_test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildit%2Fwebsphere_elk_test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildit%2Fwebsphere_elk_test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildit%2Fwebsphere_elk_test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buildit","download_url":"https://codeload.github.com/buildit/websphere_elk_test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246250083,"owners_count":20747292,"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":[],"created_at":"2024-12-10T13:09:15.310Z","updated_at":"2025-03-29T22:21:26.344Z","avatar_url":"https://github.com/buildit.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Websphere Docker w/ Elk Stack Logging\n\nTest application that logs to a dockerised ELK stack. Uses:\n- log4j output in JSON format\n- Docker log-driver mechanism (via syslog) to update logstash\n\n## ELK Stack\n\n1. `git clone https://github.com/deviantony/docker-elk`\n2. `cd docker-elk`\n3. `docker-compose up -d`\n\n## Test App\n\n1. Build war: `mvn install`\n2. Build docker image: `docker build --tag web .`\n3. Run web app: `docker-compose up -d`\n\nIf you'd like to see what's being logged out of the app container you can run this command instead:\n\n`docker run -p 80:9080 -p 443:9443 --name web --log-driver=syslog --log-opt syslog-address=tcp://127.0.0.1:5000 --log-opt tag=logger-test web`\n\n## Verify\n\n1. Open `http://localhost:5601`\n2. Create default index patterns\n3. View start up logs via Dev Tools: `GET _search`\n4. Go to `http://localhost/websphere_elk_test`\n5. View logged test message via Dev Tools: \n\n```\n\tGET _search\n\t{\n\t  \"query\": {\n\t    \"match_all\": {}\n\t  },\n\t  \"sort\": [\n\t    {\"@timestamp\" : {\"order\" : \"desc\"}}\n\t  ]\n\t}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildit%2Fwebsphere_elk_test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuildit%2Fwebsphere_elk_test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildit%2Fwebsphere_elk_test/lists"}