{"id":20284552,"url":"https://github.com/artyom/logpump","last_synced_at":"2026-05-13T02:08:42.395Z","repository":{"id":10386077,"uuid":"12534359","full_name":"artyom/logpump","owner":"artyom","description":null,"archived":false,"fork":false,"pushed_at":"2014-08-08T14:13:48.000Z","size":412,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T03:43:01.353Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/artyom.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}},"created_at":"2013-09-02T07:26:59.000Z","updated_at":"2014-08-07T19:49:25.000Z","dependencies_parsed_at":"2022-09-12T21:01:31.755Z","dependency_job_id":null,"html_url":"https://github.com/artyom/logpump","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/artyom/logpump","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyom%2Flogpump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyom%2Flogpump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyom%2Flogpump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyom%2Flogpump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artyom","download_url":"https://codeload.github.com/artyom/logpump/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyom%2Flogpump/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32964448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T23:30:32.555Z","status":"online","status_checked_at":"2026-05-13T02:00:07.132Z","response_time":115,"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":[],"created_at":"2024-11-14T14:20:15.430Z","updated_at":"2026-05-13T02:08:42.364Z","avatar_url":"https://github.com/artyom.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logpump: submit syslog messages to Scribe\n\nLogpump follows syslog files and pushes messages to [Scribe][].\n\n\tUsage: logpump -host \u003chost\u003e -port \u003cport\u003e -conffile \u003cconfig.(json|yaml)\u003e\n\t  -conffile=\"\": configuration file (json or yaml)\n\t  -host=\"localhost\": scribe host\n\t  -nohostnameprefix=false: do not set hostname as a default prefix\n\t  -port=1463: scribe port\n\t  -reconnectforever=false: try to reconnect forever instead of default 10 retries\n\t  -statedir=\"\": directory to save state files if none was given in config\n\n\nConfiguration file example (json):\n\n\t[\n\t\t{\n\t\t\t\"Pattern\":\"/var/log/messages*\",\n\t\t\t\"Statefile\":\"/var/cache/logpump/messages_state.json\"\n\t\t},\n\t\t{\n\t\t\t\"Pattern\":\"/var/log/daemon.log*\",\n\t\t\t\"CheckRotate\": \"1m30s\",\n\t\t\t\"Statefile\":\"/var/cache/logpump/daemon_state.json\",\n\t\t\t\"Category\": \"important\",\n\t\t\t\"Prefix\":\"DAEMONLOG\"\n\t\t}\n\t]\n\nThis configuration tells logpump to watch for messages in files\n`/var/log/messages*` and `/var/log/daemon.log*` and push them to Scribe server,\nsaving state to files `/var/cache/logpump/messages_state.json` and\n`/var/cache/logpump/daemon_state.json` respectively. Messages from `daemon.log`\nwould have prefix \"`DAEMONLOG: `\" appended to them, and category `important`\nassigned.\n\nIf no new messages seen in `daemon.log` for 1.5 minutes, matching files are\nre-checked for rotation. This delay defaults to 2 minutes, min. allowed value\n20s.\n\nThe same configuration in yaml format:\n\n\t-\n\t  pattern: /var/log/messages*\n\t  statefile: /var/cache/logpump/messages_state.json\n\n\t-\n\t  pattern: /var/log/daemon.log*\n\t  checkrotate: 1m30s\n\t  statefile: /var/cache/logpump/daemon_state.json\n\t  category: important\n\t  prefix: DAEMONLOG\n\n## Features\n\n* syslogd / svlogd naming formats support (see svlogd support notes below).\n* State persistence: logpump can be safely stopped and started again, it would\n  read only previously unread log messages.\n* Logfiles rotation recognized, even between logpump runs.\n* gzip/bzip2 compressed files support.\n* Automatic reconnect to Scribe server: try hard to reconnect in case of\n  network problems.\n* Automatic message resubmit if Scribe answered \"TRY LATER\".\n* Session statistics: total messages sent, connection retries, message\n  resubmits.\n\n## Usage Examples\n\n\tlogpump -host 192.168.0.1 -conffile /etc/logpump.json -reconnectforever\n\nThis would start logpump in \"reconnect forever\" mode: it would indefinitely try\nto (re)connect to remote server. Use with care, this mode can mask potential\nnetwork misconfigurations.\n\n\tlogpump -host 192.168.0.1 -conffile /etc/logpump.json -nohostnameprefix\n\nBy default, each line sent is prefixed with host name unless prefix is\noverridden in `config.json`. Option `-nohostnameprefix` disables this behavior,\nso no prefix is added to log lines unless set in configuration file.\n\n\tlogpump -host 192.168.0.1 -conffile /etc/logpump.json -statedir /var/cache/logpump\n\nIf no Statefile option specified for any Pattern in configuration file,\nstatefile name would be automatically generated from pattern; the file would be\nloaded/saved to/from directory given with `-statedir` option.\n\n`logpump` writes diagnostic messages to stderr, as well as periodic statistics\non total messages sent, reconnects and retries (Scribe server asked to try\nlater).\n\n## svlogd support\n\nIf you use svlogd to write logs (like `svlogd /path/to/dir`), you can also use logpump to pipe them into scribe. Just give it `/path/to/dir/*` as patten and it would handle files properly.\n\n## Setup\n\nVia `go get`:\n\n\tgo get -u -v github.com/artyom/logpump\n\nIf any dependencies are broken, use vendored copies:\n\n\tcd $GOPATH/src/github.com/artyom/logpump\n\tGOPATH=$PWD/_vendor:$GOPATH go install -v\n\nOn Debian/Ubuntu you can build deb package with `dpkg-buildpackage`.\n\n[Scribe]: https://github.com/facebook/scribe\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartyom%2Flogpump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartyom%2Flogpump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartyom%2Flogpump/lists"}