{"id":19361239,"url":"https://github.com/sohelamin/elk-stack","last_synced_at":"2025-04-23T12:32:30.377Z","repository":{"id":71967064,"uuid":"116542416","full_name":"sohelamin/elk-stack","owner":"sohelamin","description":"ELK Stack (Elasticsearch, Logstash \u0026 Kibana)","archived":false,"fork":false,"pushed_at":"2020-07-31T16:21:01.000Z","size":95,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T15:11:11.249Z","etag":null,"topics":["elasticsearch","elk-stack","filebeat","kibana","logstash"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/sohelamin.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":"2018-01-07T06:14:44.000Z","updated_at":"2020-07-31T16:21:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"28353726-ceeb-432b-ad31-9b72333df3bd","html_url":"https://github.com/sohelamin/elk-stack","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/sohelamin%2Felk-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohelamin%2Felk-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohelamin%2Felk-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohelamin%2Felk-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sohelamin","download_url":"https://codeload.github.com/sohelamin/elk-stack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250435114,"owners_count":21430220,"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":["elasticsearch","elk-stack","filebeat","kibana","logstash"],"created_at":"2024-11-10T07:21:25.905Z","updated_at":"2025-04-23T12:32:30.346Z","avatar_url":"https://github.com/sohelamin.png","language":"Shell","readme":"# ELK Stack\n\n\u003cp align=\"center\"\u003e\n    \u003cimg width=\"369\" height=\"367\" src=\"https://user-images.githubusercontent.com/1708683/35180071-ca7658bc-fdd1-11e7-87ea-3c55c037c501.png\" alt=\"elk\"\u003e\n\u003c/p\u003e\n\n## Using Linux\n1. Run the script.\n  ```\n  sudo chmod +x ELK.sh\n  ./ELK.sh\n  ```\n2. Setup beat clients (eg. Filebeat) to your application server.\n  ```\n  sudo chmod +x filebeat.sh\n  ./filebeat.sh\n  ```\n3. Configure beat clients (eg. filebeat) output as logstash.\n  ```\n  #----------------------------- Logstash output --------------------------------\n  output.logstash:\n    # The Logstash hosts\n    hosts: [\"localhost:5044\"]\n  ```\n4. Create `filebeat-*` index pattern in kibana dashboard.\n\n## Using Docker\n1. Up the stack using `docker-compose` command.\n    ```\n    docker-compose up -d\n    ```\n2. Setup beat clients (eg. Filebeat) to your application server.\n  ```\n  sudo chmod +x filebeat.sh\n  ./filebeat.sh\n  ```\n3. Configure beat clients (eg. filebeat) output as logstash.\n  ```\n  #----------------------------- Logstash output --------------------------------\n  output.logstash:\n    # The Logstash hosts\n    hosts: [\"localhost:5044\"]\n  ```\n4. Create `filebeat-*` index pattern in kibana dashboard.\n\n### Security\nTo protect the kibana dashboard you can use the `htpasswd` in nginx.\nDisallow to access directly the port 9200, 5601, 5044 and use ssl authentication while communicating with logstash.\n\n### Extra commands\n\nDelete indices from Elasticsearch\n```\ncurl -XDELETE 'http://localhost:9200/filebeat-*'\n```\nCheck the space usage in Elasticsearch\n```\ncurl -XGET 'http://localhost:9200/_cat/indices?v'\ncurl -XGET 'http://localhost:9200/_cat/allocation?v'\n```\n\n## Author\n\n[Sohel Amin](http://sohelamin.com)\n\n## License\n\nThis project is licensed under the MIT License - see the [License File](LICENSE) for details\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsohelamin%2Felk-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsohelamin%2Felk-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsohelamin%2Felk-stack/lists"}