{"id":23865084,"url":"https://github.com/divya063/elk_filebeat_deployment","last_synced_at":"2026-05-14T18:33:36.215Z","repository":{"id":107264487,"uuid":"262901682","full_name":"Divya063/ELK_filebeat_deployment","owner":"Divya063","description":null,"archived":false,"fork":false,"pushed_at":"2020-05-11T01:44:37.000Z","size":2547,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T13:39:39.879Z","etag":null,"topics":["elasticsearch","filebeat","kibana-dashboard","kompose","kubectl","kubernetes-dashboard","python-application"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/Divya063.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":"2020-05-11T00:30:19.000Z","updated_at":"2020-05-14T08:06:55.000Z","dependencies_parsed_at":"2024-04-27T11:00:20.062Z","dependency_job_id":null,"html_url":"https://github.com/Divya063/ELK_filebeat_deployment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Divya063/ELK_filebeat_deployment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Divya063%2FELK_filebeat_deployment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Divya063%2FELK_filebeat_deployment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Divya063%2FELK_filebeat_deployment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Divya063%2FELK_filebeat_deployment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Divya063","download_url":"https://codeload.github.com/Divya063/ELK_filebeat_deployment/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Divya063%2FELK_filebeat_deployment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33037875,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["elasticsearch","filebeat","kibana-dashboard","kompose","kubectl","kubernetes-dashboard","python-application"],"created_at":"2025-01-03T08:47:27.024Z","updated_at":"2026-05-14T18:33:36.187Z","avatar_url":"https://github.com/Divya063.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Filebeat logging, Elasticsearch and Kibana Setup\r\n\r\n### Setup using docker-compose\r\n\r\n```bash\r\n$ git clone https://github.com/Divya063/ELK_filebeat_deployment.git\r\n$ cd ELK_filebeat_deployment\r\n$ docker-compose up \r\n\r\n```\r\nTo check the kibana dashboard head over to [localhost:5601](http://localhost:5601) and apply filter `{ container.name : python_app }`, logs from python application will be visible there. Elasticsearch will be available at the url [localhost:9200](http://localhost:9200).\r\n\r\n\u003cb\u003e Kibana Dashboard \u003c/b\u003e\r\n\r\n![Alt text](https://github.com/Divya063/ELK_filebeat_deployment/blob/master/screenshots/kibana_docker.png)\r\n\r\n###  Migrate a Docker Compose Workflow to Kubernetes\r\n\r\nkompose is a tool which takes a Docker Compose file and translates it into Kubernetes resources.\r\n\r\n#### Installation (MacOS)\r\n\r\n```bash\r\n\r\n$ brew install Kompose\r\n\r\n```\r\nInstallation instructions for other platforms are provided [here.](https://kubernetes.io/docs/tasks/configure-pod-container/translate-compose-kubernetes/#install-kompose)\r\n\r\n#### Using Kompose\r\n\r\nTo convert the docker-compose.yml file to files that we can use with kubectl, run `kompose convert` and then `kubectl apply -f \u003coutput file\u003e`.\r\n\r\n#### Example\r\n\r\n```bash\r\n$ kompose convert --volumes hostPath                      \r\nWARN Ignoring user directive. User to be specified as a UID (numeric). \r\nINFO Kubernetes file \"elasticsearch-service.yaml\" created \r\nINFO Kubernetes file \"kibana-service.yaml\" created \r\nINFO Kubernetes file \"app-deployment.yaml\" created \r\nINFO Kubernetes file \"elasticsearch-deployment.yaml\" created \r\nINFO Kubernetes file \"filebeat-deployment.yaml\" created \r\nINFO Kubernetes file \"kibana-deployment.yaml\" created \r\n\r\n```\r\nThen use kubectl apply -f \u003coutput file for the service you want to deploy\u003e\r\n\r\n```bash\r\n$ kubectl apply -f filebeat-deployment.yaml               \r\ndeployment.apps/filebeat configured\r\n```\r\nAfter deploying the service head over to [Kubernetes dashboard](http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/#/overview?namespace=default) to check for the status.\r\n\r\n\u003cb\u003e Kubernetes dashboard \u003c/b\u003e\r\n\r\n![Alt text](https://github.com/Divya063/ELK_filebeat_deployment/blob/master/screenshots/dashboard.png)\r\n\r\nTo access the kibana and elasticsearch instance, do port forwarding. \r\n\r\n#### Example\r\n\r\n```bash\r\n$ kubectl get pods --namespace=default                    ─╯\r\nNAME                             READY   STATUS    RESTARTS   AGE\r\napp-79fb66779-l8gmv              1/1     Running   1          7h36m\r\nelasticsearch-587cf4b694-mxbbk   1/1     Running   0          6h42m\r\nfilebeat-58d44cc6b7-8j2fd        1/1     Running   0          55m\r\nkibana-cb8ffcf65-fshfp           1/1     Running   0          6h40m\r\n\r\n# For elasticsearch\r\n$ kubectl port-forward elasticsearch-587cf4b694-mxbbk  9200:9200 --namespace=default\r\nForwarding from 127.0.0.1:9200 -\u003e 9200\r\nForwarding from [::1]:9200 -\u003e 9200\r\n\r\n# For Kibana\r\n$ kubectl port-forward kibana-cb8ffcf65-fshfp  5601:5601 --namespace=default\r\nForwarding from 127.0.0.1:5601 -\u003e 5601\r\nForwarding from [::1]:5601 -\u003e 5601\r\nHandling connection for 5601\r\n```\r\nHead over to [localhost:5601](http://localhost:5601) and apply filter `{container.labels.io_kubernetes_container_name:python-app}`, logs from python application will be visible there. Elasticsearch will be available at the url [localhost:9200](http://localhost:9200).\r\n\r\n\u003cb\u003e Kibana Dashboard \u003c/b\u003e\r\n![Alt text](https://github.com/Divya063/ELK_filebeat_deployment/blob/master/screenshots/kube_kibana.png)\r\n\r\n\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivya063%2Felk_filebeat_deployment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivya063%2Felk_filebeat_deployment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivya063%2Felk_filebeat_deployment/lists"}