{"id":28206832,"url":"https://github.com/ndrive/graylog-archiver","last_synced_at":"2025-10-24T02:13:10.496Z","repository":{"id":57435944,"uuid":"83806693","full_name":"NDrive/graylog-archiver","owner":"NDrive","description":"Archives graylog indices.","archived":false,"fork":false,"pushed_at":"2018-10-16T14:24:27.000Z","size":20,"stargazers_count":13,"open_issues_count":5,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-21T06:33:27.195Z","etag":null,"topics":["graylog","logs"],"latest_commit_sha":null,"homepage":"","language":"Python","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/NDrive.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}},"created_at":"2017-03-03T14:29:54.000Z","updated_at":"2023-07-26T17:41:11.000Z","dependencies_parsed_at":"2022-09-01T13:50:36.141Z","dependency_job_id":null,"html_url":"https://github.com/NDrive/graylog-archiver","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/NDrive/graylog-archiver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NDrive%2Fgraylog-archiver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NDrive%2Fgraylog-archiver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NDrive%2Fgraylog-archiver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NDrive%2Fgraylog-archiver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NDrive","download_url":"https://codeload.github.com/NDrive/graylog-archiver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NDrive%2Fgraylog-archiver/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267536111,"owners_count":24103427,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"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":["graylog","logs"],"created_at":"2025-05-17T11:12:57.814Z","updated_at":"2025-10-24T02:13:10.423Z","avatar_url":"https://github.com/NDrive.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Graylog Archiver\nArchives graylog indices to `backup_dir`, keeping the latest ones (`max_indices`).\n\nFor example, if you have the following indices:\n\n- graylog_49\n- graylog_48\n- graylog_47\n\nAnd `max_indices` is set to 1, it will archive and delete 48 and 47.\n\n## Install\n\nInstall __Python 3__ and use pip:\n\n    pip3 install graylog-archiver\n\n## Usage\nConfigure `path.repo` in `elasticsearch.yml` to allow the creation of backup\nrepositories at `backup_dir`.\n\n\nExample:\n\n```\npath.repo: /srv/backups/elasticsearch\n```\n\nCreate a configuration file for graylog archiver `graylog_archiver.json`:\n\n```json\n{\n  \"elasticsearch\": {\n    \"hosts\": \"localhost\"\n  },\n  \"max_indices\": 3,\n  \"backup_dir\": \"/srv/backups/elasticsearch/graylog\",\n  \"delete\": false\n}\n```\n\nRun with:\n\n    graylog-archiver\n\nUse your strategy to backup:\n\n    rsync -r --remove-source-files /srv/backups/elasticsearch/graylog backups@backups.company.com:/srv/backups/graylog\n\n## Test\nStart docker containers:\n\n    cd test \u0026\u0026 docker-compose up -d\n\nSetup Graylog with an input and send some logs.\n\nRun graylog_archiver with the test configuration:\n\n    graylog-archiver --config test/config.json\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndrive%2Fgraylog-archiver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndrive%2Fgraylog-archiver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndrive%2Fgraylog-archiver/lists"}