{"id":22822420,"url":"https://github.com/tix-factory/local-elk","last_synced_at":"2026-04-13T23:32:15.158Z","repository":{"id":101735988,"uuid":"537877294","full_name":"tix-factory/local-elk","owner":"tix-factory","description":"Everything needed to run the ELK stack locally via docker.","archived":false,"fork":false,"pushed_at":"2022-10-23T23:50:39.000Z","size":38,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-30T23:41:29.242Z","etag":null,"topics":["docker","elk-stack","grafana","kafka","nginx","prometheus"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tix-factory.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}},"created_at":"2022-09-17T17:09:57.000Z","updated_at":"2022-10-05T04:23:42.000Z","dependencies_parsed_at":"2023-06-18T23:54:46.802Z","dependency_job_id":null,"html_url":"https://github.com/tix-factory/local-elk","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/tix-factory/local-elk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tix-factory%2Flocal-elk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tix-factory%2Flocal-elk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tix-factory%2Flocal-elk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tix-factory%2Flocal-elk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tix-factory","download_url":"https://codeload.github.com/tix-factory/local-elk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tix-factory%2Flocal-elk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31775759,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: 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-stack","grafana","kafka","nginx","prometheus"],"created_at":"2024-12-12T16:11:56.740Z","updated_at":"2026-04-13T23:32:15.140Z","avatar_url":"https://github.com/tix-factory.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Local ELK\n\nThis repository contains everything you need to run a local single server architecture with visibility (logs, metrics, etc).\n\nThis repository was created with the intention of running all of this in docker on Windows.\n\n## Application Stack\n\nThis is a list of all the applications you will run with this template, and their purposes:\n\n- [ElasticSearch](https://www.elastic.co/elasticsearch/): Log storage\n- [logstash](https://www.elastic.co/logstash/): Collect logs from docker containers\n- [Kibana](https://www.elastic.co/kibana/): Logs visualizer\n- [Grafana](https://grafana.com/): Charts\n- [Prometheus](https://prometheus.io/): Metrics collection\n- [nginx](https://www.nginx.com): HTTP Server\n- [certbot](https://certbot.eff.org/): TLS certificate renewals\n- [RabbitMQ](https://www.rabbitmq.com/): Message Queues\n\n# Setup\n\n## Prerequisites\n\n1. Install [Docker Desktop](https://www.docker.com/products/docker-desktop)\n2. Install [WSL2](https://aka.ms/wsl2kernel), and run `wsl --set-default-version 2`\n3. Ensure `openssl` exists in the `PATH` environment variable (see: [stackoverflow](https://stackoverflow.com/a/51757939/1663648))\n\n## Repository Setup\n\nCommands are intended to be run in the cloned repository root.\n\n1. Move the `.wslconfig` file to `%USERPROFILE%`, and run `wsl --shutdown`, then use Docker Desktop to restart WSL2, in the troubleshoot panel.\n2. Run `docker network create tix-factory`\n3. Run `[guid]::NewGuid().ToString() | Out-File -FilePath .\\secrets\\prometheus-bearer-token.txt -NoNewline -Encoding UTF8`\n4. Run `docker-compose up -d`\n5. Run `node index.js { email }` in the [http/certbot](./http/certbot) directory. Recommended to setup a recurring task for this one.\n6. Save the password output by this command, it will be used to connect to kibana.\n7. Run `docker-compose restart nginx`\n\n## Kibana\n\nConfigure the index in kibana by going to `Stack Management` -\u003e `Data Views`.\n\nCreate a data view for the `logstash-*` index to visualize the logs from all the docker containers.\n\n## Grafana\n\nLog into grafana (username: `admin`, password: `admin`), and set the email + username + password.\n\nTo add more hosts for prometheus to scrape for metrics, update the [prometheus.yml](./metrics/prometheus.yml) `targets`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftix-factory%2Flocal-elk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftix-factory%2Flocal-elk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftix-factory%2Flocal-elk/lists"}