{"id":16139430,"url":"https://github.com/bachng2017/renat-stats","last_synced_at":"2025-04-06T17:43:18.906Z","repository":{"id":169901614,"uuid":"191024187","full_name":"bachng2017/renat-stats","owner":"bachng2017","description":"ELK stack with predefined dashboard for RENAT project","archived":false,"fork":false,"pushed_at":"2019-08-08T13:59:11.000Z","size":183,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T23:45:12.263Z","etag":null,"topics":["docker-compose-files","renat"],"latest_commit_sha":null,"homepage":null,"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/bachng2017.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-06-09T15:36:59.000Z","updated_at":"2020-04-22T09:37:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"d971c07d-3ae2-454c-be79-e08727f66d68","html_url":"https://github.com/bachng2017/renat-stats","commit_stats":null,"previous_names":["bachng2017/renat-stats"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachng2017%2Frenat-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachng2017%2Frenat-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachng2017%2Frenat-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachng2017%2Frenat-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bachng2017","download_url":"https://codeload.github.com/bachng2017/renat-stats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247526675,"owners_count":20953141,"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-compose-files","renat"],"created_at":"2024-10-09T23:49:03.145Z","updated_at":"2025-04-06T17:43:18.878Z","avatar_url":"https://github.com/bachng2017.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"renat-stats is a ELK docker composer with predefined dashboard to track your renat scenario\n\n![sample](renat-stats-sample.png)\n\n## Prepare the renat server to send data to this stack\nThe renat official container came with this ability already. If you install the renat server by your own, follow these steps to send data to the renat-stats stack.\n\n1. add ELK 7.1 repository `/etc/yum.repos.d/elasticsearch.repo`\n\n```\nname=Elasticsearch repository for 7.x packages\nbaseurl=https://artifacts.elastic.co/packages/7.x/yum\ngpgcheck=1\ngpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch\nenabled=1\nautorefresh=1\ntype=rpm-md\n```\n\n2. install ELK filebeat\n\n```\n$ yum install -y filebeat rsyslog\n```\n\n4. configure the rsyslog service by edite `/etc/rsyslog.conf`\n\n```\nlocal5.*                        /var/log/renat/renat.log\n```\n\n3. configure filebeat service by editing `/etc/filebeat/filebeat.yml` to have at least those setting\n```yaml:filebeat.yml\nfilebeat.inputs:\n- type: log\n  paths:\n    - /var/log/renat/renat.log\n    - /var/log/renat.log\n  fields:\n    service: renat\noutput.logstash:\n  hosts: [\"\u003crenat-stats-logstash-ip\u003e:5044\"]\n```\n\nwhere `\u003crenat-stats-logstash-ip\u003e` is the logstash IP of the stack. In case the renat container is running within the same docker network, it could be just `logstash`.\n\n4. restart the service\n\n\n```\n$ systemctl restart filebeat\n$ systemctl restart rsyslog\n\n```\nand confirm the status of the service\n\n```\n$ systemctl status filebeat\n$ systemctl status rsyslog\n```\n\n\n## Using the renat-stats\n1. Clone the stack from git repository\n\n```\n$ git clone http://10.128.3.50/gitlab/bachng/renat-stats.git\n```\n\n- Initialize and start the stack\nThis will bring up the stack and push the dashboard configuration.\n```\n$ cd renat-stats\n$ ./init.sh\n```\nThe running stack will have a docker network called ``renat`` to bind all the ELK component.\n\n*Note*: this will clear all existed data in the stack \n\n\n- Stop and remove the stack\n\n```\n$ ./stop.sh\n```\nThe ELK data will remains in `./elasticsearch/data`\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbachng2017%2Frenat-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbachng2017%2Frenat-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbachng2017%2Frenat-stats/lists"}