{"id":22752347,"url":"https://github.com/code4mk/k8s-efk-logging-setup","last_synced_at":"2025-04-12T23:51:57.183Z","repository":{"id":263116113,"uuid":"889373395","full_name":"code4mk/k8s-efk-logging-setup","owner":"code4mk","description":"A one-click Kubernetes EFK (Elasticsearch, Fluentbit, Kibana) stack setup for easy log management.","archived":false,"fork":false,"pushed_at":"2024-11-16T10:14:49.000Z","size":9,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T17:56:52.149Z","etag":null,"topics":["devops","efk","efk-stack","fluentbit","k8s","k8s-logging"],"latest_commit_sha":null,"homepage":"https://www.youtube.com/watch?v=Bzk9Fhc7J6o","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/code4mk.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":"2024-11-16T07:49:12.000Z","updated_at":"2024-12-18T12:11:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"b41af6e5-4571-4a0f-8a59-c5529d74a863","html_url":"https://github.com/code4mk/k8s-efk-logging-setup","commit_stats":null,"previous_names":["code4mk/k8s-efk-logging-setup"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4mk%2Fk8s-efk-logging-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4mk%2Fk8s-efk-logging-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4mk%2Fk8s-efk-logging-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4mk%2Fk8s-efk-logging-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code4mk","download_url":"https://codeload.github.com/code4mk/k8s-efk-logging-setup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647248,"owners_count":21139081,"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":["devops","efk","efk-stack","fluentbit","k8s","k8s-logging"],"created_at":"2024-12-11T05:11:21.215Z","updated_at":"2025-04-12T23:51:57.175Z","avatar_url":"https://github.com/code4mk.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EFK Stack Installation for Kubernetes\n\nThis repository contains scripts and configurations for deploying the EFK (Elasticsearch, Fluent Bit, Kibana) stack on a Kubernetes cluster for centralized logging.\n\n## Overview\n\nThe EFK stack consists of:\n- **Elasticsearch**: Database to store and index logs\n- **Fluent Bit**: Lightweight log collector and forwarder\n- **Kibana**: Web UI for visualizing and analyzing logs\n\n## Prerequisites\n\n- Kubernetes cluster\n- Helm 3.x installed\n- `kubectl` configured to access your cluster\n- Sufficient cluster resources as defined in the values files\n\n## Installation\n\n### Option 1: Automated Installation\n\nRun the installation script:\n\n```bash\n./install.sh\n```\n\nThe script will present you with the following options:\n1. Install Elasticsearch only\n2. Install Kibana only\n3. Install Fluent Bit only\n4. Install Complete Stack\n5. Exit\n\n### Option 2: Manual Installation\n\n1. Create the logging namespace:\n```bash\nkubectl create namespace logging\n```\n\n2. Add the Elastic and Fluent Bit Helm repositories:\n```bash\nhelm repo add elastic https://helm.elastic.co\nhelm repo add fluent https://fluent.github.io/helm-charts\nhelm repo update\n```\n\n3. Install Elasticsearch:\n```bash\nhelm install elasticsearch elastic/elasticsearch -f ek/elasticsearch-values.yaml -n logging\n```\n\n* it will take about 110 seconds to be ready\n\n4. Install Kibana:\n```bash\nhelm install kibana elastic/kibana -f ek/kibana-values.yaml -n logging\n```\n\n* it will also take about 110 seconds to be ready\n\n5. Install Fluent Bit:\n```bash\nhelm install fluent-bit fluent/fluent-bit -f fluentbit/values.yaml -n logging\n```\n\n## Accessing Kibana\n\n```bash\nkubectl port-forward svc/kibana-kibana 5601:5601 -n logging\n```\n* `http://localhost:5601`\n\n* get the elastic user's password\n\n```bash\n$ kubectl get secrets --namespace=logging elasticsearch-master-credentials -ojsonpath='{.data.password}' | base64 -d\n```\n\n* `username` is `elastic`\n\n# sample project deploy\n\n```bash\nkubectl create namespace backend\nkubectl apply -f project.yml\n```\n\n---\n\u003cdiv align=\"center\"\u003e\n  \n💼 **Need DevOps expertise?**  \n📧 [hiremostafa@gmail.com](mailto:hiremostafa@gmail.com)  \n🚀 Available for hire\n  \n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode4mk%2Fk8s-efk-logging-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode4mk%2Fk8s-efk-logging-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode4mk%2Fk8s-efk-logging-setup/lists"}