QueryShield

What evidence logging do I need for LLM SQL incident response?

When (not if) something goes wrong, the evidence log is what lets you answer: what did the agent do, who asked it to, and what data was touched? Minimum fields for IR-grade logging:

Ship to your SIEM (Datadog / Splunk / Elastic / Chronicle) with alerting on: reject-rate spikes per agent, table-allowlist-violation rule hits, sleep-function denials, multi-statement attempts. Retention: HIPAA six years; PCI DSS one year online + three archived; SOC 2 typically one year.

A working IR runbook should be able to answer "did agent X exfiltrate users.email between time A and B" in under five minutes by replaying the log filtered on tables_accessed CONTAINS 'users' AND columns_accessed CONTAINS 'email'.