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

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
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.

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

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. 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

LimitValue
New live queries30 per hour
Open live queries10 per organization
Active scheduled queries50 per organization
Performance questions (CPU, memory, disk)Not yet