rsyslog, A Receiver For Other Hosts' Logs, Over TLS
rsyslog from AppStream as a remote receiver on EL 10: a plaintext port, RFC 5425's TLS port, and one file per sending host. The live test sends a message to each and finds both in the right file at 0640, pushes plaintext at the TLS port and finds nothing written, and checks that no remote message reached this host's own log. Original role, live-tested on Rocky Linux 10.
Verification
Live-testedReally deployed to a container sandbox, proven idempotent (a second run changes nothing), verified against the role’s assertions, then torn down.
Conformance
- Static validation (yamllint · ansible-lint)
Provenance
- SHA-256 checksum
- Signature (pending)
Functional
- Live-tested - applied, verified, destroyed
Last verified 2026-09-26 · podman 4.9.3 · ansible 2.21.4 · how we verify
Cite it in your README
badge · attributionPaste this beside the module in the repository that uses it. The badge is rendered from this artifact's verification record, so it reads live-tested because the record says so, and the link lands on this page.
[](https://www.iac-bazaar.com/catalog/ansible-rsyslog-remote?utm_source=syndication&utm_medium=readme&utm_campaign=artifact)
Ansible role 1.0.0, live-tested on IaC Bazaar: [rsyslog, A Receiver For Other Hosts' Logs, Over TLS](https://www.iac-bazaar.com/catalog/ansible-rsyslog-remote?utm_source=syndication&utm_medium=readme&utm_campaign=artifact)
```yaml
# rsyslog, A Receiver For Other Hosts' Logs, Over TLS: https://www.iac-bazaar.com/catalog/ansible-rsyslog-remote (download from your IaC Bazaar account)
```Preview:
Documentation
rsyslog-remote
A log receiver, and the proof that it receives. The role turns the rsyslog
EL 10 already ships into a collector: a plaintext port for senders that cannot
do TLS, RFC 5425's TLS port for those that can, and one file per sending host
under /var/log/remote. The live test sends a message to each port and finds
both, in the right file, with the right mode.
No download, and no version to pin. EL 10 packages rsyslog and the OpenSSL
netstream driver it needs, so the role installs them by name and takes what the
distribution ships: a security update arrives through dnf, not through a new
release of this role. What the role owns is the receiver's configuration and
the proof that it receives.
A self-signed pair, once, or your own. A receiver with no certificate
cannot open its TLS port at all, so the role creates a self-signed pair the
first time and never touches it again. Point
rsyslog_remote_tls_cert/_key/_ca at a CA-issued pair and the role leaves
them alone; set rsyslog_remote_tls_auth_mode: x509/name and give the senders
certificates to make the trust mutual rather than one-way.
The distribution's unit, our configuration. The role installs rsyslog,
rsyslog-openssl and openssl, writes one drop-in under /etc/rsyslog.d, and
enables the unit the package already ships: systemctl cat rsyslog shows the
distribution's own unit, not one this role invented.
The default listen address is loopback, and a receiver has to change it.
Unlike the other roles in this catalogue, this one exists to be reached from
other hosts, so 127.0.0.1 is a starting point rather than a destination: set
rsyslog_remote_listen_address to the address the senders can reach, and open
the port to them and to nobody else. The default is there so that installing
the role never silently exposes a new port, and so the live test can prove the
receiver works before anything is exposed at all.
The ruleset ends with stop, and the live test proves it. A receiver that
also writes other hosts' messages into its own /var/log/messages makes every
local alert ambiguous. The verify sends both messages and then asserts the
count in the local log is zero.
The TLS port refuses a plaintext client. The verify pushes a bare syslog line at 6514 and asserts nothing was written, which is the half of a TLS claim that a successful handshake does not cover.
The packaged unit's UMask=0066 beats fileCreateMode. A received log asked
for at 0640 is created 0600, because the mask is applied after rsyslog chooses
the mode. The result is tighter than asked for, which is why it is easy to miss:
the role asks for 0600 so that the file and the configuration say the same
thing, and the live test reads the mode off the file rather than the config.
License
Commercial - IaC Bazaar EULA. (c) IaC Bazaar.
Usage code & full reference need an account
The complete copy-paste usage, the full input/output reference, and operational notes are free with an account - shown here and bundled in the download. Sign in and this section fills in.
- Variables
- Test
Related modules
ansible-alertmanager
Prometheus Alertmanager from the upstream release (sha256-verified) as a hardened system service on loopback, its cluster gossip listener switched off and its configuration checked by amtool before it lands. The live test posts an alert through the API and reads it back active, held by the default receiver, and expects no 9094 listener at all. Original role, live-tested on Rocky Linux 10.
ansible-alloy
Grafana Alloy from the upstream release (sha256-verified) as a hardened system service on loopback with --disable-reporting, a self-scrape pipeline that proves the collector runs, and its configuration checked by alloy validate before it lands. The live test reads Alloy's own metrics and asks the component API for the scrape component's health. Original role, live-tested on Rocky Linux 10.
ansible-blackbox-exporter
Prometheus Blackbox exporter from the upstream release (sha256-verified) as a hardened system service on loopback with HTTP and TCP modules, checked by --config.check before the file lands. The live test has it probe itself over HTTP and TCP (probe_success 1) and a port with nothing behind it (probe_success 0): it measures, not only answers. Original role, live-tested on Rocky Linux 10.
ansible-grafana-server
Grafana on loopback with a secret key of yours: every install that never set one shares the package's, which encrypts the data-source credentials in its database. Secure cookies and HSTS for the TLS proxy in front; public snapshots, plugin update checks, feedback links and Gravatar switched off. Settings verified through the API, not the file. Original role, live-tested on Rocky Linux 10.
ansible-grafana
Grafana (sha256-verified) on EL 10 from the upstream release, as a hardened systemd service on loopback; the live test reads back the datasource this role provisioned, creates a dashboard and finds it by search, sees anonymous and wrong-password requests refused, and reads the build metric naming the version installed. Original role, live-tested on Rocky Linux 10.
ansible-jaeger
Jaeger v2, the tracing backend built on the OpenTelemetry Collector, from the upstream release (sha256-verified against the right checksum file) as a hardened system service on loopback with badger storage and the query API on loopback. The live test pushes a span over OTLP and reads the trace back by id with its name and service. Original role, live-tested on Rocky Linux 10.