{"id":19431055,"url":"https://github.com/jmousqueton/elk-cec-docker","last_synced_at":"2025-06-29T03:34:10.607Z","repository":{"id":81454051,"uuid":"171019765","full_name":"JMousqueton/elk-cec-docker","owner":"JMousqueton","description":"ELK Stack with Docker for CEC","archived":false,"fork":false,"pushed_at":"2019-11-24T21:50:59.000Z","size":42,"stargazers_count":13,"open_issues_count":2,"forks_count":26,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-24T18:50:49.034Z","etag":null,"topics":["docker","elk-stack"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/JMousqueton.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":"2019-02-16T15:39:57.000Z","updated_at":"2024-12-01T21:58:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"2967e63d-4ccd-4b6e-850d-3a755f5f2e21","html_url":"https://github.com/JMousqueton/elk-cec-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JMousqueton/elk-cec-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMousqueton%2Felk-cec-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMousqueton%2Felk-cec-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMousqueton%2Felk-cec-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMousqueton%2Felk-cec-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JMousqueton","download_url":"https://codeload.github.com/JMousqueton/elk-cec-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMousqueton%2Felk-cec-docker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261070524,"owners_count":23105421,"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":["docker","elk-stack"],"created_at":"2024-11-10T14:28:05.703Z","updated_at":"2025-06-21T05:36:44.279Z","avatar_url":"https://github.com/JMousqueton.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ELK-CEC-DOCKER\n\n[![Build Status](https://api.travis-ci.org/JMousqueton/elk-cec-docker.svg?branch=master)](https://travis-ci.org/JMousqueton/elk-cec-docker)\n\nLatest version of the [Elastic stack](https://www.elastic.co/elk-stack) with Docker and Docker Compose.\n\nNote: An other branche but depreciated is available with [cerebro](https://github.com/lmenezes/cerebro) (listen on port 9000)\n\n## Requirements\n\n### Host setup\n\n1. Install [Docker](https://www.docker.com/community-edition#/download) version **17.05+**\n2. Install [Docker Compose](https://docs.docker.com/compose/install/) version **1.6.0+**\n3. Clone this repository\n\nBased on the official Docker images from Elastic:\n\n* [elasticsearch](https://github.com/elastic/elasticsearch-docker)\n* [logstash](https://github.com/elastic/logstash-docker)\n* [kibana](https://github.com/elastic/kibana-docker) \n\nBy default, the stack exposes the following ports:\n\n* 5000: Logstash TCP input\n* 9200: Elasticsearch HTTP\n* 9300: Elasticsearch TCP transport\n* 5601: Kibana\n\n## Configuration\n\n**NOTE**: Configuration is not dynamically reloaded, you will need to restart the stack after any change in the\nconfiguration of a component.\n\n### How can I tune the Kibana configuration?\n\nThe Kibana default configuration is stored in `kibana/config/kibana.yml`.\n\nIt is also possible to map the entire `config` directory instead of a single file.\n\n### How can I tune the Logstash configuration?\n\nThe Logstash configuration is stored in `logstash/config/logstash.yml`.\n\nIt is also possible to map the entire `config` directory instead of a single file, however you must be aware that\nLogstash will be expecting a\n[`log4j2.properties`](https://github.com/elastic/logstash-docker/tree/master/build/logstash/config) file for its own\nlogging.\n\n### How can I tune the Elasticsearch configuration?\n\nThe Elasticsearch configuration is stored in `elasticsearch/config/elasticsearch.yml`.\n\nYou can also specify the options you want to override directly via environment variables:\n\n```yml\nelasticsearch:\n\n  environment:\n    network.host: \"_non_loopback_\"\n    cluster.name: \"my-cluster\"\n```\n\n\n## Storage\n\n### How can I persist Elasticsearch data?\n\nThe data stored in Elasticsearch will be persisted after container reboot but not after container removal.\n\nIn order to persist Elasticsearch data even after removing the Elasticsearch container, you'll have to mount a volume on\nyour Docker host. Update the `elasticsearch` service declaration to:\n\n```yml\nelasticsearch:\n\n  volumes:\n    - /path/to/storage:/usr/share/elasticsearch/data\n```\n\nThis will store Elasticsearch data inside `/path/to/storage`.\n\n**NOTE:** \nBeware of the [unprivileged `elasticsearch` user][esuser] is used within the Elasticsearch image, therefore the mounted data directory must be owned by the uid `1000`.\n\n[esuser]: https://github.com/elastic/elasticsearch-docker/blob/016bcc9db1dd97ecd0ff60c1290e7fa9142f8ddd/templates/Dockerfile.j2#L22\n\n## JVM tuning\n\nBy default, both Elasticsearch and Logstash start with [1/4 of the total host\nmemory](https://docs.oracle.com/javase/8/docs/technotes/guides/vm/gctuning/parallel.html#default_heap_size) allocated to\nthe JVM Heap Size.\n\nThe startup scripts for Elasticsearch and Logstash can append extra JVM options from the value of an environment\nvariable, allowing the user to adjust the amount of memory that can be used by each component:\n\n| Service       | Environment variable |\n|---------------|----------------------|\n| Elasticsearch | ES_JAVA_OPTS         |\n| Logstash      | LS_JAVA_OPTS         |\n\nTo accomodate environments where memory is scarce (Docker for Mac has only 2 GB available by default), the Heap Size\nallocation is capped by default to 256MB per service in the `docker-compose.yml` file. If you want to override the\ndefault JVM configuration, edit the matching environment variable(s) in the `docker-compose.yml` file.\n\nFor example, to increase the maximum JVM Heap Size for Logstash:\n\n```yml\nlogstash:\n\n  environment:\n    LS_JAVA_OPTS: \"-Xmx1g -Xms1g\"\n```\n\n### Using a newer stack version\n\nTo use a different Elastic Stack version than the one currently available in the repository, simply change the version\nnumber inside the `.env` file, and rebuild the stack with:\n\n```console\n$ docker-compose build\n$ docker-compose up\n```\n\n**NOTE**: Always pay attention to the [upgrade instructions](https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-upgrade.html)\nfor each individual component before performing a stack upgrade.\n  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmousqueton%2Felk-cec-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmousqueton%2Felk-cec-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmousqueton%2Felk-cec-docker/lists"}