Agents

Live queries

Ask your agents a question and see the answer per host within seconds. Is Remote Desktop off? Which hosts listen on port 3389? What does PasswordAuthentication say in sshd_config? Schedule the question and every change lands in an index, ready for an alert.

Overview

Live queries live on the Agents page, tab Live queries. A query uses the same signed, read-only building blocks as the vulnerability sensors. The agent reads, your LogPulse environment judges the answer. There is never a script.

Requirements

WhatNeeds
Live queriesAgent 0.9.3 or later, every plan. Permission agents:update
Scheduled queriesAgent 0.9.3 or later, Pro or Business. Permission agents:query
Firewall rules and "all listening ports"Agent 0.9.3 or later
CPU, memory and diskAgent 0.9.6 or later. Older agents answer Unknown
More than 200 sensors and queries per hostAgent 0.9.6 or later (500 per host)

Ask a question

Pick the hosts (all agents, groups or single agents), choose what to look at and press Run now. The question goes straight to connected agents over their open connection; each agent answers once. A live query stays open for 24 hours, so hosts that come online later still answer.

What you can ask

In the formBuilding blockCompare versions
Installed softwarepackageYes
A setting in a config filefile_regex for Key value or key = valueNo
A registry valueregistry (Windows)Yes
A filefile (one * per folder)Windows (PE version)
Text in a filefile_regex (RE2)No
A running processprocessNo
A listening portport (empty: every listening TCP port)No
Firewall rulesfirewall: rules with a port from Windows Firewall, ufw or firewalld, such as block in tcp/23No
CPU, memory or diskperformance: one of cpu, memory, swap, disk (per disk, such as /var 91) or top_memory (the 10 programs with the most memory). Every value ends in a percentageNo
A Java libraryarchive (live only)Yes

Show or check

Show the value lists the value per host, and on top how many hosts have which value. Click a value to see the hosts.

Check a value adds an expected value (is, is not, contains, matches, more than, less than, exists, absent). Every host is As expected or Not as expected. All values found must match: one sshd include with yes makes the host Not as expected. An agent that may not read a path answers Could not check, never Not found.

For CPU, memory and disk, more than and less than compare the percentage at the end of each value. Disk space with less than 90 is as expected when every disk is below 90% full.

Templates

Use a template fills the form in one click. A selection:

TemplateHosts
Open ports per hostLinux, Windows
Ports the firewall blocks / lets inLinux, Windows
Remote Desktop is off, requires NLAWindows
SMBv1 server is offWindows
Defender real-time protection is not turned off by policyWindows
Windows Firewall domain profile is onWindows
SSH does not accept passwords, no root login with a passwordLinux
Remote access tools that run (AnyDesk, TeamViewer, ScreenConnect, RustDesk)Linux, Windows
Telnet or FTP listensLinux, Windows
Browser versions per hostLinux, Windows
Disks that are almost full (every disk below 90%)Linux, Windows
Hosts short on memory, CPU use right now, programs using the most memoryLinux, Windows

Scheduled queries

Press Schedule to keep a query running every hour, every six hours or every day. Pick the index the answers go to. A changed expected value judges the stored answers again right away. The host sheet on the Agents page shows the current answer under Scheduled queries.

Events and alerts

On every change, and otherwise once a day per host, a scheduled query writes a state event:

State event
index=<your index> sourcetype=agent_query event_type=state query_id=<uuid>
state, value, values, added, removed, expected_op, expected_value, changed

For every value that appears or disappears there is also a change event with change=added|removed, the value, and the parsed fields port, protocol, firewall_action and direction. CPU, memory and disk answers have no change events: the state event carries percent and, for a disk or a program, item. With a check, the state event is written when the outcome flips, so state=not_compliant is the alert. Alert on them like on any other search:

LPQL
sourcetype=agent_query event_type=change change=added primitive=port
sourcetype=agent_query event_type=change change=added primitive=firewall firewall_action=allow
sourcetype=agent_query event_type=change change=removed primitive=firewall firewall_action=block

See Alerting & notifications.

Safety

Only the fixed read-only building blocks of the agent run: no shell, PowerShell, WMI or script. Paths, keys and patterns that look like secrets are refused. The allowlist of the host in sensors.conf also applies to queries, and an agent in restricted mode only reads what its own user may read.

Note: Vulnerability checks by LogPulse stay in Security → Detection Hub → Library → Agent sensors. Live queries are for your own questions.

API

CallWhat it does
POST /api/v1/fleet/questionsA live query with targets (agentIds, groupIds; empty is all agents) and an optional check
POST /api/v1/agent-queries/scheduledA scheduled query with intervalMinutes (60, 360 or 1440) and index
PATCH / DELETE on a scheduled queryChange, pause or remove it

Limits

Limits are per organization and follow your plan. An Enterprise license raises them, up to the maximum in the last column. Closing a live query frees its place right away.

LimitFreeStarterProBusinessEnterprise licenseMaximum
New live queries per hour303060120120 to 300300
Live queries open at once1010152525 to 5050
Active scheduled queriesNot includedNot included50100100 to 150150

Other limits: a query names at most 100 hosts and groups, and an answer keeps at most 200 values per host. A live query stays open for 24 hours. The Live queries tab shows how much of each limit is in use.

Why there are limits

Every live query is signed into the sensor bundle of each host it targets and sent at once, and every scheduled query stays in that bundle. An agent takes 500 sensors and queries in one bundle (200 before agent 0.9.6), shared with the vulnerability sensors. The limits keep room for those sensors and keep the answers fast on large fleets. A host that answered a live query drops it from its bundle straight away.