{"id":19504844,"url":"https://github.com/nice-digital/docker-relk","last_synced_at":"2025-07-22T23:02:32.662Z","repository":{"id":141113472,"uuid":"68957688","full_name":"nice-digital/docker-relk","owner":"nice-digital","description":"Docker based RELK stack (Rabbitmq, Elastic, Logstash, Kibana)","archived":false,"fork":false,"pushed_at":"2018-03-07T13:27:24.000Z","size":8,"stargazers_count":13,"open_issues_count":0,"forks_count":7,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-26T00:33:42.655Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/nice-digital.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":"2016-09-22T20:02:18.000Z","updated_at":"2024-04-04T21:06:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"499f60ee-8203-4727-a5cc-509e1266c2cf","html_url":"https://github.com/nice-digital/docker-relk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nice-digital/docker-relk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nice-digital%2Fdocker-relk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nice-digital%2Fdocker-relk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nice-digital%2Fdocker-relk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nice-digital%2Fdocker-relk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nice-digital","download_url":"https://codeload.github.com/nice-digital/docker-relk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nice-digital%2Fdocker-relk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266586839,"owners_count":23952199,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2024-11-10T22:27:25.389Z","updated_at":"2025-07-22T23:02:32.594Z","avatar_url":"https://github.com/nice-digital.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker RELK stack\n\nRELK stack (Rabbitmq, Elastic, Logstash, Kibana) powered by docker compose.\nRabbitMQ is configured with an exchange and queue together with a binding.\nLogstash subscribes to this queue and sends messages onto elastic.\nThen you can see messages appear in kibana.\n\nThis project has taken influence from these two great github repos which\ndeserve credit:\n[docker-elk](https://github.com/deviantony/docker-elk)\n[docker-rabbitmq-example](https://github.com/jonathandandries/docker-rabbitmq-example)\n\nSee the subfolders for specific configuration of each component\n\n### Requirements\n\n* [docker](https://docs.docker.com/install/)\n* [docker-compose](https://docs.docker.com/compose/)\n* [docker-machine](https://docs.docker.com/machine/)\n\n### Usage\n\nCheck that docker has **more than 2GB** of available memory to run the\nstack by checking the `Total Memory` variable:\n\n```bash\ndocker info\n```\n\nIf you need to change your docker configuration to increase it: \n- Docker for Windows \n  - Open Docker for Windows settings \n  - [Go to the Advanced setting](https://docs.docker.com/docker-for-windows/#advanced) and increase available memory\n- Docker Toolbox \n  - Open VirtualBox Manager\n  - Select the `default` docker VM\n  - Select `Settings` -\u003e `System` -\u003e `Motherboard`\n  - Increase the available `Base Memory`\n\nRun the stack in the foreground **or** backgroung\n\n```bash\ndocker-compose up    # foreground\ndocker-compose up -d # backgroung\n```\n\n#### Use admin consoles\n\nGet the docker host IP address:\n\n```bash\ndocker-machine ip\n```\n\nFor Kibana admin in your browser go to the address:\n`http://[docker-ip]:5601` e.g.: http://192.168.99.100:5601\n\nFor RabbitMQ admin in your browser go to the address: \n`http://[docker-ip]:5601` e.g.: http://192.168.99.100:15672\n. Use the following user and password: `guest:guest`\n\nFor RabbitMQ API documentation in your browser go to the address:\n`http://[docker-ip]:15672/api/` e.g.: http://192.168.99.100:15672/api/\n\nTo check that Elastic is running in your browser go to the address:\n`http://[docker-ip]:9200` e.g.: http://192.168.99.100:9200\n\nFor Elastic console in your browser go to the address:\n`http://[docker-ip]:5601/app/kibana#/dev_tools`\ne.g.: http://192.168.99.100:5601/app/kibana#/dev_tools\n\n#### Kibana initial setup\n\nThe first time you run this up you will be prompted to configure the\nKibana index pattern. You can only proceed here once you have sent some\ndata into the index (logstash-\\*).\n\nYou can send a message to the RabbitMQ _logstash-serilog_ queue\nusing curl, e.g. :\n\n```bash\ncurl -u guest:guest -X POST -H \"Content-Type:application/json\" -d '{\"properties\":{\"content-type\": \"application/json\"},\"routing_key\":\"#.#.#\",\"payload\":\"{\\\"Message\\\":\\\"hello world\\\"}\",\"payload_encoding\":\"string\"}' http://192.168.99.100:15672/api/exchanges/%2F/logging.application.serilog/publish\n```\n\nOnce at least one message is in Kibana the index will have been created\nin elastic and you will be able to click the 'create' button. If this\nhasn't happened yet then you will see something like 'Unable to extract\nmapping...' and the button will be disabled!\n\n#### Changing configuration files\nIf you are changing the configuration files for\nlogstash/kibana/rabbitmq you will need to re-build:\n\n```bash\ndocker-compose build\ndocker-compose up \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnice-digital%2Fdocker-relk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnice-digital%2Fdocker-relk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnice-digital%2Fdocker-relk/lists"}