← BACK_TO_EXPERIMENTS
Note ยท Agent logging

Agent Command Logging

Record the agent's prompt text and tool-call strings in Splunk. The checker on this page matches those strings against a keyword list. It does not measure drift, embeddings, or token probabilities.

Executive Summary

An agent can return HTTP 200 for a call that still runs a command outside its allowed set. A log of status codes does not show that command. This note describes a sidecar that records the prompt text and the tool-call string and forwards both to Splunk.

A saved search can then match those strings against a deny list. The simulation on this page is that match: a substring check. It does not score embeddings, token probabilities, or semantic drift, and it does not stop the command.

1. Status codes hide the command

DevSecOps logs usually record outputs: HTTP status codes, host metrics, database errors. An agent can return HTTP 200 for a request that still runs a command outside its allowed set. The command string has to be in the log or the review never sees it.

The sidecar for that log is a Splunk Technology Add-on running beside the agent, TA-asset-identity-framework. It ships the prompt text and the tool-call string. It does not read token probabilities, and it does not change model weights.

2. What gets logged

+-------------------------------------------------------------------------+
|                           AGENT HOST ENVIRONMENT                        |
|                                                                         |
|  +--------------------+        +-------------------------------------+  |
|  |  Autonomous Agent  | ====>  |  Sidecar TA (Asset Identity Guard)  |  |
|  |  (LLM Prompt Loop) | Intent |  - Prompt and command log           |  |
|  +--------------------+ State  |  - Records the tool-call string     |  |
|                                +-------------------------------------+  |
+---------------------------------------------------|---------------------+
                                                    | Encrypted Egress
                                                    v
                                 +-------------------------------------+
                                 |         SPLUNK SIEM / SOAR          |
                                 |  - Keyword match on command logs    |
                                 |  - Saved search, not a model score  |
                                 |  - Alert only; does not block       |
                                 +-------------------------------------+
Fig 2.1: The sidecar records prompt text and tool-call strings and forwards them to Splunk. Splunk matches the strings. The match does not block the command.

Three pieces:

3. What a reviewer is looking for

Three kinds of failure show up in agent logs. This page only checks the third, and only by substring.

4. Keyword check

Type a command. The box flags the string if it contains one of the deny-list terms. A string with none of those terms is reported as unmatched. Unmatched is not approval.

> Waiting for a command string.
// Keyword substring check. A miss is not an approval. This demo does not block the command.