{"id":21400288,"url":"https://github.com/oefenweb/ansible-rsyslog","last_synced_at":"2026-01-28T16:00:49.449Z","repository":{"id":48982937,"uuid":"46787880","full_name":"Oefenweb/ansible-rsyslog","owner":"Oefenweb","description":"Ansible role to manage rsyslog and rsyslog.d in Debian-like systems","archived":false,"fork":false,"pushed_at":"2026-01-21T13:01:51.000Z","size":105,"stargazers_count":12,"open_issues_count":2,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-22T00:27:15.175Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jinja","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/Oefenweb.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":"2015-11-24T11:37:12.000Z","updated_at":"2025-09-25T12:55:57.000Z","dependencies_parsed_at":"2023-02-08T19:15:27.187Z","dependency_job_id":"9ce3270f-3bf9-416f-8416-c93a371ec4ac","html_url":"https://github.com/Oefenweb/ansible-rsyslog","commit_stats":null,"previous_names":[],"tags_count":53,"template":false,"template_full_name":null,"purl":"pkg:github/Oefenweb/ansible-rsyslog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fansible-rsyslog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fansible-rsyslog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fansible-rsyslog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fansible-rsyslog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Oefenweb","download_url":"https://codeload.github.com/Oefenweb/ansible-rsyslog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fansible-rsyslog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28846733,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T15:15:36.453Z","status":"ssl_error","status_checked_at":"2026-01-28T15:15:13.020Z","response_time":57,"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-11-22T15:20:39.051Z","updated_at":"2026-01-28T16:00:49.438Z","avatar_url":"https://github.com/Oefenweb.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"## rsyslog\n\n[![CI](https://github.com/Oefenweb/ansible-rsyslog/workflows/CI/badge.svg)](https://github.com/Oefenweb/ansible-rsyslog/actions?query=workflow%3ACI)\n[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-rsyslog-blue.svg)](https://galaxy.ansible.com/Oefenweb/rsyslog)\n\nManage rsyslog and rsyslog.d in Debian-like systems.\n\n#### Requirements\n\nNone\n\n#### Variables\n\n* `rsyslog_apparmor_extend_profile`: [default: `true`]: Whether to extend the default `usr.sbin.rsyslogd` profile to make validation work (in most cases)\n* `rsyslog_apparmor_utils_install`: [default: `false`]: Whether to install apparmor-utils or not\n* `rsyslog_apparmor_debug`: [default: `false`]: Whether to show more apparmor debugging output\n* `rsyslog_apparmor_profile_local_content`: [default: `[]`]: Additional file content of the extended `usr.sbin.rsyslogd` profile (e.g. `/var/lib/haproxy/dev/log rwl,`)\n\n* `rsyslog_global_config_file_validate`: [default: `true`]: Whether the global configuration should be validated before it is applied\n\n* `rsyslog_repeated_msg_reduction`: [default: `true`]: Repeated message reduction\n* `rsyslog_file_owner`: [default: `syslog`, `root` on Debian]: Set the file owner for dynaFiles newly created\n* `rsyslog_file_group`: [default: `adm`]: Set the file group for dynaFiles newly created\n* `rsyslog_file_create_mode`: [default: `0640`]: The creation mode with which rsyslogd creates new files\n* `rsyslog_dir_create_mode`: [default: `0755`]: The creation mode with which rsyslogd creates new directories\n* `rsyslog_umask`: [default: `0022`]: The default rsyslogd processes' umask\n* `rsyslog_priv_drop_to_user`: [default: `syslog`, not used on Debian]: Name of the user rsyslog should run under after startup\n* `rsyslog_priv_drop_to_group`: [default: `syslog`, not used on Debian]: Name of the group rsyslog should run under after startup\n\n* `rsyslog_rsyslog_d_files` [default: `{}`]: `/etc/rsyslog.d/*` file(s) declarations\n* `rsyslog_rsyslog_d_files.key`: The name of the rsyslog configuration file (e.g `50-default`)\n* `rsyslog_rsyslog_d_files.key.state` [default: `present`]: State\n* `rsyslog_rsyslog_d_files.key.validate` [default: `true`]: Whether this configuration should be validated before it is applied\n* `rsyslog_rsyslog_d_files.key.settings` [default: `[]`]: Settings declarations\n* `rsyslog_rsyslog_d_files.key.rules` [default: `{}`]: Rule declarations\n* `rsyslog_rsyslog_d_files.key.rules.{n}.rule` [required]: Rule declaration\n* `rsyslog_rsyslog_d_files.key.rules.{n}.logpath` [required]: Path of the log file\n* `rsyslog_rsyslog_d_files.key.directives` [default: `[]`]: Directive declarations\n\n## Dependencies\n\nNone\n\n#### Example(s)\n\n##### Simple configuration\n\n```yaml\n---\n- hosts: all\n  roles:\n    - oefenweb.rsyslog\n```\n\n##### Complex configuration\n\n```yaml\n---\n- hosts: all\n  roles:\n    - oefenweb.rsyslog\n  vars:\n    rsyslog_repeated_msg_reduction: true\n    rsyslog_file_owner: syslog\n    rsyslog_file_group: adm\n    rsyslog_file_create_mode: '0640'\n    rsyslog_dir_create_mode: '0755'\n    rsyslog_umask: '0022'\n    rsyslog_priv_drop_to_user: syslog\n    rsyslog_priv_drop_to_group: syslog\n    rsyslog_rsyslog_d_files:\n      20-ufw:\n        rules:\n          - rule: ':msg,contains,\"[UFW \"'\n            logpath: '/var/log/ufw.log'\n      postfix: \"{{ rsyslog_rsyslog_d_presets_postfix | combine(rsyslog_rsyslog_d_presets_validate_false) }}\"\n      49-haproxy:\n        settings:\n          # Create an additional socket in haproxy's chroot in order to allow logging via\n          # /dev/log to chroot'ed HAProxy processes\n          - '$AddUnixListenSocket /var/lib/haproxy/dev/log'\n        rules:\n          # Send HAProxy messages to a dedicated logfile\n          - rule: ':programname, startswith, \"haproxy\"'\n            logpath: '/var/log/haproxy.log'\n        directives:\n          - '\u0026~'\n        validate: false\n```\n\n#### License\n\nMIT\n\n#### Author Information\n\n* Mark van Driel\n* Mischa ter Smitten\n\n#### Feedback, bug-reports, requests, ...\n\nAre [welcome](https://github.com/Oefenweb/ansible-rsyslog/issues)!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foefenweb%2Fansible-rsyslog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foefenweb%2Fansible-rsyslog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foefenweb%2Fansible-rsyslog/lists"}