{"id":15508691,"url":"https://github.com/jay7x/rsyslog_exporter","last_synced_at":"2025-08-02T12:06:42.547Z","repository":{"id":64306917,"uuid":"387158660","full_name":"jay7x/rsyslog_exporter","owner":"jay7x","description":"Export rsyslog `impstats` counters","archived":false,"fork":false,"pushed_at":"2024-03-14T10:08:17.000Z","size":76,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-10T23:58:11.077Z","etag":null,"topics":["prometheus-exporter","rsyslog","rsyslog-stats"],"latest_commit_sha":null,"homepage":"","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/jay7x.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-07-18T11:24:45.000Z","updated_at":"2023-01-03T14:42:25.000Z","dependencies_parsed_at":"2024-03-14T11:30:55.205Z","dependency_job_id":"9fda25b6-07d5-419b-94a7-e2db74da245a","html_url":"https://github.com/jay7x/rsyslog_exporter","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jay7x/rsyslog_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jay7x%2Frsyslog_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jay7x%2Frsyslog_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jay7x%2Frsyslog_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jay7x%2Frsyslog_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jay7x","download_url":"https://codeload.github.com/jay7x/rsyslog_exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jay7x%2Frsyslog_exporter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268385731,"owners_count":24242101,"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-08-02T02:00:12.353Z","response_time":74,"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":["prometheus-exporter","rsyslog","rsyslog-stats"],"created_at":"2024-10-02T09:39:43.104Z","updated_at":"2025-08-02T12:06:42.524Z","avatar_url":"https://github.com/jay7x.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rsyslog prometheus exporter\n\nThis software acts like a syslog server and prometheus exporter at the same\ntime. It listens on a network socket for `impstats` syslog messages and exposes\nthem as a prometheus metrics.\n\nNOTE: This exporter is different from\n[soundcloud](https://github.com/soundcloud/rsyslog_exporter) kind of exporters.\nMetrics are exposed in different format (closer to the `impstats`).\n\n## How to setup\n\n1. Download the `rsyslog_exporter` binary (TBD) and put it to the `/usr/local/bin/rsyslog_exporter` path e.g.\n\n2. Run `rsyslog_exporter`. By default it'll listen for RFC3164 syslog messages on UDP port 5145 on all interfaces. Prometheus metrics will be exposed on port 9292.\n\n3. Configure `impstats` to send counters data as syslog messages to the rsyslog_exporter syslog listener:\n\n```\nmodule(load=\"impstats\"\n  interval=\"60\"\n  resetCounters=\"off\"\n  format=\"json\"\n  ruleset=\"stats\"\n)\n\nruleset(name=\"stats\") {\n  action(type=\"omfwd\" name=\"stats_fwd\"\n    target=\"127.0.0.1\"\n    port=\"5145\"\n    protocol=\"udp\"\n  )\n}\n```\n\n3. Check rsyslog configuration systax by running `rsyslogd -N 1`\n\n4. Restart rsyslog if no errors found (`systemctl restart rsyslog` e.g.)\n\n5. Go to \u003chttp://localhost:9292/metrics\u003e to see metrics\n\n## Command-line parameters\n\n```\n  -listen-address string\n      IP:port at which to serve metrics (default \":9292\")\n  -metrics-endpoint string\n      URL path at which to serve metrics (default \"/metrics\")\n  -syslog-format string\n      Which syslog version to use (rfc3164, rfc5424) (default \"rfc3164\")\n  -syslog-listen-address string\n      Where to serve syslog input (default \"udp://0.0.0.0:5145\")\n```\n\n## TODO\n\n- add custom global labels\n- support collecting metrics from multiple rsyslog instances\n- better tests\n- better errors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjay7x%2Frsyslog_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjay7x%2Frsyslog_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjay7x%2Frsyslog_exporter/lists"}