Keeping PII out of NeMo Guardrails traces, logs and telemetry

Guardrail traces and logs can carry the personal data your rails were meant to stop. This page covers what NeMo Guardrails records, which settings control capture, how to disable telemetry, and how to set retention.

On this page

Why NeMo Guardrails logs can reintroduce PII that your rails removed

A NeMo Guardrails deployment can pass every PII check and still write personal data into its logs, traces or telemetry, because logging runs beside the rail pipeline, not inside it. The rails decide what reaches the model and what reaches the user. Anything the application or library records about a request follows a separate data path with its own settings and storage. To keep PII out of NeMo Guardrails traces and logs, you need controls for each of those paths. Work through this before any production or regulated pilot, because that is when real conversations start landing in a logging backend.

The library is open source under the Apache 2.0 license, and you run it in infrastructure you control, so the logging behavior is yours to configure and verify. It depends on the configuration you choose and on the observability backend you connect. Ask the team to confirm four things for the version you deploy: what the library records by default, whether content capture is turned on, whether verbose logging is enabled in any environment, and whether anonymous usage telemetry is sent and how to disable it. Defaults can change between releases, so check the NeMo Guardrails documentation for the release in use rather than relying on earlier notes.

Test the setup with synthetic identifiers. Send known fake names, account numbers and email addresses through the rails, including requests the rails block, then search every log file, trace store, telemetry export and dashboard for those values. Rejected input is often logged in full, so blocked requests need the same check as allowed ones. Treat the observability backend as a data store in scope for your privacy review, with written decisions on who can query it, how long records are kept and how they are deleted. The detectors in the sibling pages decide what is masked. This check confirms what is written down afterward.

Where personal data can land after a guardrail call

The diagram starts with a user message entering the application host, then passes through input rails and the LLM call before output rails return a response. Four places can keep content after the guardrail runs: application logs, verbose logs, traces exported to an observability backend, and anonymous usage telemetry. The trust boundary sits between the application host and the backend, so anything exported crosses it. Check each branch against your own configuration, because the sources do not confirm which of these capture message content by default.

Content write points around one guardrail request, with the host-to-backend trust boundary.

Which logging and telemetry settings to change and when

This table compares the five settings that decide what NeMo Guardrails writes to logs, traces and telemetry, and what each one means for personal data. Read each row as a question: what does this setting capture, what personal data risk does it add, and in which environments is it acceptable. Confirm exact setting names and defaults in the NeMo Guardrails documentation for the release you run, since 0.25.0 is the current release.

SettingWhat it recordsPersonal data riskWhen it fits
Default loggingApplication log messages from the guardrails runtime at the default level, with no prompt or response text added by designLow to moderate, since error messages and custom action output can still echo user inputMost environments, once you have checked custom actions and exception handling for echoed input
Verbose loggingDetailed runtime messages, including intermediate rail decisions and processing stepsHigh, because detail often includes the text that passed through each railShort debugging sessions in non-production systems with synthetic or masked data
Opt-in content capture in tracesFull prompts, responses and retrieved content attached to trace spans in the observability backendHighest, since raw personal data is stored in a second system with its own access rulesOnly where you have a documented purpose, a retention limit and access restricted to named reviewers
Anonymous usage telemetryAnonymous usage data sent by the library to its maintainers, which the documentation says excludes user contentLow for content, but it still reveals deployment activity, so confirm the exact fieldsEnvironments where your data handling policy allows outbound telemetry; disable it where it does not
Backend retentionHow long traces, logs and metrics stay in the observability store before deletionScales with the other settings, since longer retention keeps any captured personal data longerSet retention to the shortest period your policy and debugging needs allow, and apply it to every store

How to lock down capture before go-live

This sequence finds every place personal data could land during NeMo Guardrails runs, confirms what the installed version records by default, and closes each path before production traffic arrives. Each step ends with a check that a synthetic identifier no longer appears in the sink under test.

  1. Inventory every log, trace and telemetry sink

    The platform team and the application owner list every location where guardrail input, output or events can be written. This includes application logs, the stdout and log files of the guardrails server, any tracing exporter, metrics pipelines, error trackers and any chat history store that receives guardrail events. Each sink needs a named owner and storage location. Before testing, send a test prompt containing an illustrative synthetic identifier such as SYNTH-PII-0001 and record which sinks hold it. The step is done when the list is complete and each sink has an owner.

  2. Confirm default capture behavior in the installed version

    Read the documentation for the exact NeMo Guardrails version you will deploy, because defaults can change between releases. The current release listed on PyPI is 0.25.0, so confirm the behavior of the version you pin and test. Determine whether prompts, responses and retrieved chunks are written to logs or traces by default, and which log level is active. Run a test configuration with the synthetic identifier and search each sink from the inventory. The step closes when you have a written record of which sinks capture content in the tested version.

  3. Turn off content capture and verbose logging

    Set the content capture option to off and lower log verbosity to a non-debug level in the configuration your deployment loads. This is usually the configuration file that sits with the guardrails configuration, such as config.yml, or the environment and server settings for your container. Copy the key names from the documentation for your version, not from forum posts or older examples. Restart the service and resend the synthetic test prompt. The check passes when the identifier is absent from every sink while operational events such as request IDs and errors remain visible.

  4. Disable anonymous usage telemetry as documented

    Apply the method the documentation describes for turning off anonymous usage telemetry in your version. Store the setting alongside other production settings so it survives image rebuilds and redeployments. Confirm it in two ways: check the running process or container configuration, and watch outbound network traffic from the host during a test run to confirm no requests reach the telemetry endpoint. If the documentation does not name the setting clearly for your version, ask the maintainers or NVIDIA before go-live. The step is done when a test run produces no telemetry traffic.

  5. Route logs through a redaction step where needed

    Some sinks must keep operational records, such as error logs for debugging or security events for investigation. For those, place a redaction stage between the application or server and the sink, such as a log processor or collector pipeline that masks identifier patterns. This redaction supplements steps 3 and 4 and does not replace them. Test it by sending synthetic identifiers in the formats your rules target and in nearby formats that a naive rule might miss, then searching the sink. The step is done when targeted formats are masked in the stored output and the test results are recorded.

  6. Set retention on the observability backend

    Configure retention for every backend that stores residual records, including the log store, trace store, metrics store and any backups. The retention period is set in each backend's own settings, and the value is a policy decision your compliance owner should make and document. Apply the same rule to backups so expired records do not return through a restore. In a test environment, send the synthetic identifier, wait until the configured period has passed, and query each backend for it. The step is done when the identifier no longer returns results and the backup rule is confirmed.

How the logging path differs between the Python API and the guardrails server

The two ways of running NeMo Guardrails write logs to different places, so PII controls have to be checked on each path separately. When the library is called through its Python API, records are written by the host application's own logging configuration, so whatever handlers, formatters and log levels the application sets up decide where guardrail messages end up. When NeMo Guardrails runs as a guardrails server, it exposes an HTTP API and loads its configurations from a folder, and the records it emits go to the container's standard output unless the deployment routes them elsewhere. Before go-live, confirm for each path which logger names are active, which level is set, and where each record is stored, rather than assuming the two paths behave alike.

On the server path, four things determine where records end up: the image built from the provided Dockerfile, the configuration folder mounted or baked into that image, the container runtime's log driver, and any sidecar or node-level collector that ships stdout to a backend. Changing the configuration folder can change which rails and logging settings are active, so it belongs under change control with the same review as the rails themselves. Ask the team that operates the cluster which collector reads container output, which index or bucket receives it, and who can query it. Those answers define the retention and access boundary for any PII that does reach the logs.

Teams that deploy through NVIDIA's NeMo Helix control plane have a third log location to check. NeMo Helix documents NeMo Guardrails as an inference gateway middleware plugin that applies guardrail configurations to model endpoints, so requests may pass through the gateway before or after the guardrails layer. Review the gateway's access logs, error logs and any request capture it offers, and confirm whether those records contain prompt or response bodies. The NeMo Helix guardrail documentation is the starting point for that review. Put every log source on one inventory, with its owner and retention period, so that a masking rule on the guardrail does not leave an unmasked copy in the gateway.

Security risks in traces, logs and telemetry

Observability data is easy to overlook when PII controls are designed around the request path. The cards below cover the places personal data can persist after a guardrail has already blocked or masked it, and the control that closes each gap. Check each one in your own deployment before the assistant handles real users.

Raw prompts and responses in traces

Tracing that records full message bodies stores user input and model output exactly as they arrived, including any personal data a rail was meant to mask. Content capture should be off by default in your configuration, and turned on only for a named debugging scope with a set end date. Confirm which span attributes your tracing setup exports, since the content may sit in fields you did not expect. Test with a synthetic identifier and search the trace backend for it.

NeMo Guardrails docs

Personal data in verbose debug output

Verbose logging prints intermediate rail inputs, prompts and action arguments, which can repeat personal data at every stage of the pipeline. Keep the log level at its production default and enable debug output only in isolated test environments. Where a log line must contain user context, redact it before it is written, not after it reaches a central store. Review the log levels in your deployment files, because a single override can turn a quiet service into a verbose one.

Telemetry leaving the network

Anonymous usage telemetry is a separate outbound channel from your traces, and it can be disabled. Confirm the setting in your configuration and environment, then block outbound traffic from the guardrails host to unapproved destinations with egress rules. Your network team should verify the block with a test request from the same workload, not only from a workstation. Record the result as evidence for your data flow review.

Access rights on the observability backend

Anyone who can query the trace or log store can read whatever content was captured, so the backend's access model matters as much as the content settings. Grant read access by role, separate production data from development data, and limit who can export or share query results. Review access on a fixed schedule and remove accounts that no longer need it. Confirm how your chosen backend maps its roles to your identity provider before you rely on it.

Copies in backups and exports

Backups of the trace store, log archives and dashboard exports keep copies that outlive the primary retention rule. A deletion request that clears the live store can leave personal data in older snapshots. Set the backup retention period alongside the live retention period, and document how deletion reaches backups. Encryption at rest should cover these copies too, if the backend and storage layer support it. Ask the backend vendor which encryption features are available in your version.

Credentials and tokens in logs

Request headers, connection strings and API keys for model endpoints and detectors can appear in error messages and debug dumps. Prevent this by keeping secrets in a dedicated secrets store and referencing them by name in configuration rather than writing values into files. Add a log scan to your review that searches for key patterns and bearer token formats. Treat any match as an incident and rotate the credential.

What to confirm in your environment before relying on these settings

Which NeMo Guardrails version and setting names apply to my deployment?

Confirm them against the exact release you run, because setting names and defaults can change between versions. The current release is 0.25.0, published on 19 November 2026, and it requires Python 3.11, 3.12 or 3.13. Read the configuration reference for that version in the NeMo Guardrails documentation and record the setting names for content capture, verbose logging and usage telemetry. Then confirm the defaults empirically: start the server in a test environment, send requests that contain synthetic identifiers, and inspect what is written to disk, stdout and any telemetry destination. Keep the results with your configuration so a future upgrade can be checked against them.

Do the library, the server and a gateway write separate logs?

Yes, plan for each layer to write its own records until you verify otherwise. The Python library can log inside the calling application's process, the guardrails server writes its own HTTP and application logs, and a gateway such as NeMo Helix, which runs guardrails as inference gateway middleware, may add records of its own. Build an inventory with one row per process, listing its log destination, its log format, whether it includes request or response bodies, and which log shipper collects it. Container standard output, sidecars and log forwarders are common places where a field is copied without anyone reviewing it.

Does LangChain or another framework send its own traces?

It can, but only where the integration is enabled. LangChain integration in NeMo Guardrails is opt-in and is turned on with the environment variable NEMOGUARDRAILS_LLM_FRAMEWORK=langchain. When it is enabled, check whether LangChain's own tracing or callback mechanisms are active in the same environment, because those are configured by LangChain, not by NeMo Guardrails. Confirm this by reading your framework's current documentation, then verify it with a test request and by reviewing outbound network connections from the application host. If the integration is not enabled, confirm that the variable is absent from every container, unit and deployment manifest, including copies inherited from development environments.

How does the NeMo Microservices sunset affect vendor-provided telemetry?

Do not assume that any telemetry or support behavior in the retired container is still maintained. NVIDIA states that NeMo microservices were sunset as of October 1, 2026, that there will be no new releases, and that the NGC artifact is no longer supported. NVIDIA's archived documentation says all new development has moved to NeMo Platform and asks existing users to contact their account team. The repository linked for NeMo Platform now resolves to NVIDIA-NeMo/nemo-helix. Ask NVIDIA which telemetry, usage reporting or callback behavior the retired container still performs, whether the successor control plane sends any data outside your network, and what the support position is for your current image. Record the answers in writing before you go to production.

Can my observability backend redact or drop fields before storage?

Confirm this for the specific backend you run, because capabilities differ by product and version. Ask whether it supports ingestion-time processing that drops fields, masks values or rejects records before they are written, and whether those rules apply to every input path, including OpenTelemetry collectors and direct API writes. Query-time masking only hides values in the interface; the original data may still sit in storage, indexes, snapshots and backups. Also confirm how retention applies to each index or stream, how long backups are kept, and who can read raw data. Test the rules with synthetic records before relying on them.

How do I test that no synthetic identifier reaches storage?

Seed a test run with unique synthetic identifiers, such as a fake email address, a fake card-format number and a unique marker string, then search every sink after the data has been flushed. Send the identifiers through the user prompt, the model response, a retrieved chunk, a blocked request, a streaming response and an error path. Search log files, trace stores, metrics labels, telemetry payloads, dead-letter queues and backups for each marker. Use a different marker in each run so old data cannot cause false results, and repeat the test after every version upgrade or configuration change. Keep the test scripts under version control.

What does confirming these settings cost, and who does the work?

The cost depends on how many processes, log sinks, telemetry destinations and observability backends you run, and on whether a team has the time and access to test them. Your internal platform, security and compliance staff can do the work, and this is usually the cheapest path if they already operate the logging stack. A partner can do it under a written scope that lists the environments, sinks and test cases. Ask any quote to itemize the inventory, the test environment, the synthetic data tests, the documentation of findings and any retest after upgrades. Recurring cost comes from re-running these checks on each upgrade and from maintaining retention and redaction rules.

What evidence to keep for security and compliance reviews

Reviewers start with a sink inventory: every place where prompts, responses, retrieved chunks or rail decisions can land. For each sink, record the component (the guardrails server, the Python process, a log destination, an OpenTelemetry or Prometheus export path, or the observability backend), the setting that controls content capture or verbosity, the value in production, who can read the data, and the retention period configured on the backend. Keep this inventory under change control so that a new integration adds a row before it reaches production. Ask your reviewers which sinks they expect to see and whether they want the inventory mapped to data classifications.

Configuration exports are stronger evidence than repository copies. Export the effective config.yml and the environment variables from the running deployment, since an override in the container or orchestrator can change a setting the file shows as off. Store these alongside the NeMo Guardrails version (0.25.0 at the time of writing, which requires Python 3.11, 3.12 or 3.13), the container image digest, and dated screenshots of the backend retention settings. For synthetic identifier checks, seed test inputs with clearly fake names, account numbers and identifiers, run them through input, output and retrieval paths, then search every sink for them. Keep the test inputs, the search queries, the hits and the fixes. Each change to a logging or telemetry setting needs a change record with an owner, a reviewer, the date and a rollback step.

These artifacts become inputs to the controls and evidence mapping described in the NeMo Guardrails compliance guidance on this site. Mapping them to a framework is a judgment that belongs to your compliance team and, where required, an independent auditor or certification body. DeployOpen prepares the systems, settings and evidence, but does not issue audit reports or certifications, and nothing in this page states that any framework is met. Before you build the evidence set, confirm with your assessor which artifacts they accept, how much history they want for retention and change records, and whether they need the synthetic test results to be repeated on each release. The NeMo Guardrails documentation is the place to confirm the current setting names for your version.

How DeployOpen scopes and delivers this work

Each engagement starts with a written scope that names the telemetry sinks, retention targets and reviewers involved. The cards below follow the work in order, from the agreement through the evidence your reviewers receive, and each step is checked against the traces, logs and telemetry your NeMo Guardrails deployment actually produces.

Fixed-scope agreement in writing

Before work starts, scope, deliverables and timelines are agreed in writing, so the boundaries of the review are clear. The agreement should name which NeMo Guardrails version and configuration are covered, which observability backend is in scope, and which settings may be changed. A quote follows from that written scope, since DeployOpen does not publish a price list. Ask for the scope document to list every sink it covers.

Sink inventory and settings review

The first technical step is an inventory of every place guardrail data can land on your own infrastructure: application logs, verbose logging output, trace exporters, the anonymous usage telemetry setting and the observability backend. For each sink, the review records whether prompts or responses are captured by default or only when content capture is enabled. Confirm the exact setting names against the version you run, because they change between releases.

NeMo Guardrails docs

Configuration changes and redaction setup

Changes are made in configuration files under version control, so each setting can be reviewed and reverted. Typical work includes turning off content capture, reducing verbose output, disabling anonymous telemetry where the setting allows, and adding a redaction step in the logging path for values that must still be recorded. Each change is tied to a named sink so reviewers can trace it. Confirm with your platform team which environments receive which changes.

Synthetic identifier testing and retest

Testing sends synthetic personal identifiers, such as made-up names, account numbers and national identifiers, through the application, then searches every sink for them. Findings list each sink, the field where the value appeared and the setting responsible. After fixes, the same tests run again to confirm the leak is closed. Synthetic data is used so that no real personal data enters the test environment.

Documentation and evidence packs

Deliverables include a description of each sink, its settings, its retention rule and the test results before and after fixes. This pack is written for your security, privacy and compliance reviewers, who need to see what is stored, where and for how long. DeployOpen prepares these systems, controls and evidence, but it does not issue audit reports or certifications. Independent auditors decide what the evidence supports.

Optional retainers for upgrades and checks

Because NeMo Guardrails releases change configuration keys and logging behavior, a retainer can cover upgrade review and repeat leak testing after each release. Retainers are priced from the written scope of recurring work, and the scope should name the versions, environments and test cadence. Ask whether the retainer includes retesting after configuration changes and who approves changes to retention settings.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.