iac.htora.dev · security templates

Home/Refreshers/Send host logs off the machine: refresher

Send host logs off the machine

Forward system logs to a collector so they outlive the machine that wrote them.

Remember

  1. Something happens on the host: a login, a new process, a service install.
  2. Recorded locally: journald and rsyslog on Linux, event logs and Sysmon on Windows.
  3. Held until sent: a disk queue on Linux, the event log itself on Windows.
  4. The collector: over TLS from Linux, Kerberos-encrypted WinRM from Windows.
PlatformUsesThe part that catches people
Linuxrsyslog forwarding, with a queue that survives the collector being downjournald throws messages away above its own rate limit before rsyslog ever sees them.
WindowsSysmon, and Windows Event Forwarding to a collectorThe forwarder runs as NETWORK SERVICE, which cannot read the Security or Sysmon logs by default.

Run the quick start

Reach the Linux machinesansible all -i inventory.ini -m ping
Windows modules, onceansible-galaxy collection install ansible.windows:==3.3.0
Reach the Windows machinesansible all -i inventory.ini -m ansible.windows.win_ping
Previewansible-playbook -i inventory.ini playbook.yml --check --diff
Runansible-playbook -i inventory.ini playbook.yml
Run again, expect changed=0ansible-playbook -i inventory.ini playbook.yml
Check it worked

Make something happen on a host, such as a login or a new process. Find it on the collector within a minute or two.

Read the full pageDownload PDF

Registry 0.23.0. Built 2026-11-17.

Made by Habibullah Tora. Source on GitHub. Code under the MIT licence, writing under CC BY 4.0.