Free plan available. Set up in minutes with the collectors you already use. Start free
Logthread

Guide

Set up a Windows server

One guided setup connects a Windows server to Logthread. You tick what the server should send, copy one PowerShell command, and the data starts to arrive. It covers the Event Log, performance counters, Security events, configuration checks, IIS, SQL Server, Active Directory and Exchange Server.

Open Integrations → Windows server and follow the steps. This page explains each one.

What you need#

  • Windows Server 2016 or later, 64-bit (x64).
  • PowerShell opened as Administrator on the server.
  • Outbound HTTPS (port 443) from the server to ingest.logthread.com.
  • The member role in Logthread, so you can create an ingest key.

Set up one server#

  1. Choose what the server sends. Tick what you need:
  2. Event Log and performance is on by default.
  3. Security events reads the Windows Security log. See Windows Security events.
  4. Configuration checks reports password, firewall, Defender and audit settings, each with its fix.
  5. IIS, SQL Server and Exchange Server send those products' logs and metrics.
  6. SQL Server Audit gives the T-SQL that turns on SQL Server's own audit of failed logins, role and permission changes, schema changes and reads of the tables you name, and the parser and detections for it. See SQL Server Audit.
  7. Active Directory is for domain controllers only.
  8. Watch folders (not released yet) watches application folders such as D:\inetpub\app and reports files that change outside a deployment. Give up to ten folders separated by ;, and any names or patterns to ignore besides the ones already ignored (logs, temp, cache, uploads). See Watch a deployment folder.
  9. DLP (removable media, printing, content scan) (not released yet) records USB storage use, printing and sensitive content in the folders you name. Its sub-ticks are Removable media (on by default), Printing and Scan folders for sensitive content. See Endpoint DLP.
  10. Say what the server is. Choose Member or standalone server or Domain controller. To check, run Get-CimInstance Win32_ComputerSystem | Select DomainRole. A 4 or 5 means a domain controller.
  11. Answer the questions for what you ticked. You are asked for the IIS log folder (optional) if you ticked IIS. If you ticked SQL Server, you are asked how it signs in (Windows authentication or a SQL login), and for the host and port.
  12. Say whether the agent is already installed. If it is not, you get one install command with every ticked profile. If it is, you get an upgrade command (see below).
  13. Add labels (optional). Labels such as env=prod help you pick servers later. Leave Manage this agent from Logthread on if you want to change its settings from the app. Under Manage this agent from Logthread are two more ticks (not released yet):
  14. Let Logthread upgrade this agent is on by default. Turn it off and the agent is listed as Upgrades managed locally, and the install command sets LOGTHREAD_AUTO_UPGRADE=off. See Upgrade agents from Logthread.
  15. Let Logthread enforce DLP policy on this host is off by default and shows when you ticked DLP. It lets admins block USB storage or printing on this server from Security → DLP, each change approved by a second admin. The command sets LOGTHREAD_RESPONSE_ACTIONS=usb_policy,print_policy and pins your workspace's response key on the server. It can only be turned on here, on the server, never from Logthread. See Enforce from Logthread.

The connection page then lists numbered steps. Each has a What is this? help and a Learn more link:

  1. Create the SQL login (only if you ticked SQL Server and chose a SQL login).
  2. Check that IIS logging is on (only if you ticked IIS).
  3. Run the install or upgrade command in PowerShell as Administrator.
  4. If you ticked Security events: turn on the audit policy, check the expected events arrive, and turn on the Windows Security parser.
  5. If you ticked SQL Server Audit: run the T-SQL that turns it on, check that audit events (33205) arrive, and turn on the SQL Server Audit parser.
  6. If you ticked Configuration checks: see the results in Security → Hardening.
  7. If you ticked Security events, SQL Server Audit or Configuration checks: turn on the detections for this data in Security → SIEM (the last step links there).
  8. If you ticked Watch folders: check each folder's baseline record and its file count, then mark your deployments (see Mark your deployments).
  9. If you ticked DLP: turn on the audit subcategories for removable storage and Plug and Play events, then check the counts of USB, print and content records (see Turn on removable media auditing).
  10. Check that data arrives.

The install command contains the server's own ingest key. Treat it like a password.

The agent is already installed#

Choose Yes when the setup asks. The command it gives you upgrades the Logthread Agent in place. It keeps the key, its state and everything the agent already sends. It reads the profiles in C:\ProgramData\Logthread\Agent\conf.d\10-*.yaml, adds the ones you ticked, and replaces the older windows-security profile when you tick Security events.

Not sure whether the agent is installed? Run Get-Service LogthreadAgent. If the service exists, choose Yes.

Domain controllers and member servers#

Choose Domain controller only on a domain controller. Then Active Directory events and Kerberos events are collected.

On a domain-joined member server, the password and lockout checks are left out. Domain accounts follow the policy of the domain controllers, and those report it.

Many servers#

Run the setup on each server, with the same ticks each time. To put the agent on tens or hundreds of servers, use Intune, Group Policy or SCCM: see Install on many servers. Or install the agent once with Manage this agent from Logthread on, and then use Data in → Host agents → Configs → Roll out a setting to turn on Configuration checks or Windows Security events on many servers at once, chosen by label. See Agents.

Check that data arrives#

After the agent starts, open Explore and look for the server's host.name. Records usually show within a minute or two. The last step of the connection page also checks this for you.

Remove a server#

To stop a server, uninstall the agent from it. To revoke its key, open Integrations, open the connection and choose Remove. Removing the connection revokes its ingest key, so any agent still using it can no longer send.

Troubleshooting#

  • No records at all. Run Get-Service LogthreadAgent. The service should be Running. Read the log at C:\ProgramData\Logthread\Agent\logs\agent.log.
  • The agent cannot connect. Check that the server can reach ingest.logthread.com on port 443. A proxy or firewall is the usual cause.
  • Only part of what I ticked arrives. You may have run an older command. Run the current command from the connection page again. It upgrades in place and sets the full list.
  • A server shows "Agent 0.3.1: upgrade to 0.3.2 for Windows checks". Run the install command again. See Agents.
  • Security events are missing. Turn on the audit policy. See Windows Security events.
  • SQL Server, IIS or Active Directory data is missing. Check the sign-in, the log folder or the server role you gave in the setup. You can run the setup again with the right answers.
  • An upgrade shows Rolled back. The new version did not become healthy within 3 minutes, so the agent returned to the version it ran before. Your settings and key are unchanged. Open the agent in Data in → Host agents → Upgrades for the reason, read C:\ProgramData\Logthread\Agent\logs\agent.log, fix the cause (often the server cannot reach downloads.logthread.com or ingest.logthread.com on port 443) and start the upgrade again.
  • An upgrade shows Failed. The package could not be downloaded, its sha256 or signature did not match, or the version is below the agent's minimum. The reason is on the agent. Nothing was changed on the server.
  • A server shows Upgrades managed locally. LOGTHREAD_AUTO_UPGRADE=off is set. Run the install command with Let Logthread upgrade this agent ticked to allow remote upgrades again.
  • A server shows Upgrade by hand once. It runs an agent from before remote upgrades. Run the current install command on it once. Every upgrade after that is remote. See Agents.
  • No DLP or folder watch records. See Troubleshooting in Endpoint DLP and Watch a deployment folder.