Starfort

Download 0
Last updated Nov 15, 2026

Query Commands

The query commands inspect text or log records with Starfort. Use them to check whether logs still carry personal data, or to see verdicts for a body of data before applying the guardrail.

CommandKindPurpose
starfort-guardDriverInspect one text
starfort-guard-batchPipeInspect the text field of each input record

Both commands may omit profile when only one AIM Starfort connect profile is available to you. With more than one, specify it with profile.

Inspecting a text - starfort-guard

Inspects one text and emits one result record.

starfort-guard text="제 휴대폰 번호는 010-1234-5678 입니다."

The record carries profile, text and the common output fields below.

Inspecting records - starfort-guard-batch

Inspects the text field of each input record as it streams through, and passes the record on with the result fields added. To inspect another field, copy it into text with eval.

table duration=1h web_logs | eval text = uri | starfort-guard-batch | search action != "PASS"
  • A record with an empty text passes through without inspection
  • A field of the input record with the same name as an output field (such as action in firewall logs) is overwritten by the result
  • Each record is one API call. Narrow a large table by period or condition before piping it

Common output fields

FieldDescription
actionPASS, MASK or BLOCK. Null when no verdict was received
processed_contentThe masked text on MASK
detected_itemsDetections (policy_name, rule_name, mask_word, matched_text, alert_message, action)
mask_mappingsMask mappings (seq, original_text, masked_text, mask_word, mode)
request_idStarfort's X-Request-ID
http_statusHTTP status
latency_msCall latency in milliseconds
errorError code and message when no verdict was received

A record with error has a null action. That is not a pass, so filter on the verdict itself, as in search action == "PASS".

For option and field details, see the command manuals for starfort-guard and starfort-guard-batch.