{"id":23532674,"url":"https://github.com/outbrain-inc/consul-raftdb-reader","last_synced_at":"2026-03-08T01:06:23.937Z","repository":{"id":144204494,"uuid":"49489078","full_name":"outbrain-inc/consul-raftdb-reader","owner":"outbrain-inc","description":"A CLI tool to read Consul's RAFT commitlog","archived":false,"fork":false,"pushed_at":"2018-08-22T14:06:56.000Z","size":7,"stargazers_count":19,"open_issues_count":0,"forks_count":9,"subscribers_count":10,"default_branch":"master","last_synced_at":"2026-01-14T21:55:10.182Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/outbrain-inc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2016-01-12T09:25:29.000Z","updated_at":"2025-10-13T02:40:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"8529f740-2ea7-4ed3-9b58-291b0eae7d81","html_url":"https://github.com/outbrain-inc/consul-raftdb-reader","commit_stats":null,"previous_names":["outbrain-inc/consul-raftdb-reader","outbrain/consul-raftdb-reader"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/outbrain-inc/consul-raftdb-reader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outbrain-inc%2Fconsul-raftdb-reader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outbrain-inc%2Fconsul-raftdb-reader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outbrain-inc%2Fconsul-raftdb-reader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outbrain-inc%2Fconsul-raftdb-reader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/outbrain-inc","download_url":"https://codeload.github.com/outbrain-inc/consul-raftdb-reader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outbrain-inc%2Fconsul-raftdb-reader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30240357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T00:58:18.660Z","status":"ssl_error","status_checked_at":"2026-03-08T00:55:48.608Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-12-25T23:12:15.416Z","updated_at":"2026-03-08T01:06:23.914Z","avatar_url":"https://github.com/outbrain-inc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Consul RAFT database reader\n\nThis is a small tool to read Consul's commit log from the RAFT database and output the events in json format.\n\n\n## Installing and building\n\n```\ngo get -u github.com/outbrain/consul-raftdb-reader\n```\n\n## Using\n\nCopy the `raft/raft.db` file from a Consul server - the Consul server process must be turned off before copying because the file is continuosly mutated. After copying, open the file with this tool:\n\n```\nconsul-raftdb-reader raft.db \u003e raft.events\n```\n\n## Indexing with ELK\n\nA common use case is analyzing the dump with ELK. You can use the included ElasticSearch [index template](raft.es.template.json) to get ElasticSearch to index the fields properly.\n\n```\ncurl -XPUT http://localhost:9200/_template/consul_raft -d @raft.es.template.es\n```\n\nAfter the index template has been loaded, index the dump to ElasticSearch with Logstash:\n```\nconsul-raftdb-reader raft.db | logstash agent -e 'input { stdin { codec =\u003e json_lines } } output { elasticsearch { index =\u003e \"consul_raft\" document_type =\u003e \"raft_txn\" hosts =\u003e [\"localhost:9200\"] } }'\n```\n\nNow you can analyze the dump in Kibana.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutbrain-inc%2Fconsul-raftdb-reader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foutbrain-inc%2Fconsul-raftdb-reader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutbrain-inc%2Fconsul-raftdb-reader/lists"}