OpenSearch for GDPR: personal data in logs

How to keep personal data in OpenSearch logs under control with Article 32 security, erasure workflows, field masking, document-level security and retention rules, and what remains a legal and organizational decision.

On this page

Which GDPR duties OpenSearch can help you meet for personal data in logs

Your application and infrastructure logs almost certainly contain personal data already: IP addresses, user identifiers, session tokens tied to accounts, and sometimes email addresses or names pasted into request payloads. Once those logs land in OpenSearch, your team has to show Article 32 security of processing for that store, be able to act on erasure requests, and keep the data no longer than needed. OpenSearch supplies the technical building blocks for this: role-based access control, document-level and field-level security, field masking, audit logs and TLS for traffic between nodes and clients, plus Index State Management for deleting aged indexes. It does not decide any of the legal questions. Your controller team still decides the lawful basis for each log source, what counts as personal data in your environment, and which of the six grounds in Article 17(1) apply to a given erasure request.

Start with an inventory, not with the cluster. List each log source that reaches OpenSearch, the fields it carries, and the purpose each log serves, then mark which fields identify a person directly or indirectly. This inventory drives the access model: which roles can see raw fields, which can see masked values, and which should never see the field at all. Field masking replaces string values with a cryptographic hash per role and index, and masked fields cannot be searched, so confirm with your security and analytics users that they can still investigate with the masked form before you rely on it. Pair the roles with the identity backend you already run, such as SAML, OpenID Connect or LDAP, and check that the audit log records who queried which index.

Erasure and retention are where most logging projects struggle. Deleting a document from a live index is not the same as removing its copies in snapshot repositories and backups, so your procedure should name every place a copy can live and how each is handled. Index State Management can delete indexes automatically when they age out, for example after 90 days, which is a useful retention control but only covers time-based expiry. Targeted erasure of one person's records needs a documented search, delete and snapshot-retention step, and the retention period for each log type should come from your own legal and security assessment. DeployOpen can prepare the configuration, runbooks and evidence for these controls. It does not issue audit reports or certificates, and the GDPR requires none: Article 42 certification is voluntary and does not reduce your responsibility for compliance.

Mapping GDPR articles to OpenSearch capabilities and configuration

This table maps the GDPR obligations that most often touch log data to the OpenSearch features that address them and the settings to configure. Read each row as a requirement, the capability that helps, and the configuration decision the controller still has to make. The main takeaway is that OpenSearch supplies the controls, but retention periods, erasure procedures and records of processing remain the controller's responsibility.

RequirementOpenSearch capabilityConfiguration to set
Article 32(1): security of processing, appropriate to the riskTLS for node and client traffic, role-based access control, document and field-level security, audit logsEnable TLS on transport and REST layers, restrict log indexes to named roles, enable audit logging, and confirm the security measures match your documented risk assessment
Article 32(1): limiting who sees personal data in logsField masking replaces string values with a cryptographic hash per role and index; masked fields cannot be searchedMask fields such as email or IP address for roles that only need aggregate views, and document which fields are masked and why, since masked values lose search utility
Article 17(1): erasure grounds, such as no longer necessary data or withdrawn consentDocument-level deletion through the index API; index deletion through Index State Management; snapshot deletion through the repositoryBuild a procedure that finds affected documents by identifier, deletes them, and states how snapshots holding the data will be handled or expired
Storage limitation: retention no longer than neededIndex State Management can delete indexes when they age out, for example after 90 days as an illustrative settingSet the retention period from your own documented decision for each log source, then configure ISM policies and snapshot retention to match it
Article 30: records of processing where logs hold personal dataAudit logs record security-relevant activity; ISM policy definitions and role mappings are inspectable configurationKeep the log source inventory, the fields containing personal data, the retention periods and the access roles in your record of processing, and export the active ISM and role configuration as evidence
Erasure and retention across backupsSnapshot and restore; snapshot deletion is separate from index deletionConfirm the snapshot lifecycle so that data removed from live indexes does not persist in snapshots beyond the retention period you have set

Evidence an auditor or supervisory authority will ask to see

A supervisory authority or auditor reviewing personal data in OpenSearch logs will want to see how access was defined, how long data was kept, and how erasure requests were carried out. The cards below cover the records that show those decisions, each of which should be versioned and stored outside the cluster it describes.

Role and index mapping exports

Export the Security plugin roles, role mappings and index patterns that define who can read which indexes and fields holding personal data. Compare each export against the access model documented for the processing activity, and flag any role that grants wildcard index access. Store exports in a Git repository with review approval, so each change to a role has a named reviewer and a date. Export the configuration as code from the cluster on a schedule, and diff it against the last approved version.

Audit log settings and retention

Keep the exported audit logging configuration, showing which categories are recorded, which users and indexes are excluded, and where audit events are written. Auditors will check that access to personal data is recorded and that audit records are kept longer than the data they describe. Store the configuration in the same change-controlled repository and keep audit indexes under their own retention policy, separate from application logs.

Security plugin docs

ISM policy definitions and execution history

Export each Index State Management policy with its age thresholds, such as deletion after 90 days where that is the chosen retention period, and keep the execution history showing which indexes moved through each state. The policy file proves the rule, and the history proves it ran. Confirm that the policy is attached to every index pattern holding personal data, because an unattached index keeps its data indefinitely.

ISM docs

Erasure request records and snapshot handling

For each erasure request, record the request date, the legal ground under Article 17(1), the indexes and documents affected, the action taken, and the date. Add a note on how snapshots containing those documents were handled, because deleting live documents does not remove them from existing snapshots. Document the agreed approach, such as expiring affected snapshots or excluding them from restore, and record the operator who carried it out. Keep these records in a restricted case register, not in the logs being erased.

Masking configuration

Export the field masking settings showing which fields are hashed for which roles and indexes. Note that masked fields cannot be searched, so the configuration should match the access decisions recorded for each role. Ask the reviewer to confirm that masking covers fields in every index that receives the same source data, including copies created by ingest pipelines. Store the file with the role exports so the two can be reviewed together.

Field masking docs

Article 30 record entries

Keep the processing records for the log platform under Article 30, listing the purposes, categories of data subjects and personal data, recipients, retention periods and security measures. Each retention figure in the record should match the ISM policy, and each security measure should point to the role, masking and audit exports above. Keep the record in the controller's compliance system, version it on each material change, and set a review date tied to the log platform's release cycle.

GDPR text

How erasure requests reach indexes and snapshots

Erasure under GDPR Article 17(1) is triggered by one of six grounds: the data is no longer necessary for its purpose, consent is withdrawn, a data subject successfully objects, the processing is unlawful, a legal obligation requires erasure, or the data was collected from a child for an information society service. Each request that falls under one of these grounds has to be traced to the documents that hold the person's data. That starts with an identifier: a user ID, account number, email address or session token that your log pipeline writes into a known field. Decide which field is the lookup key, confirm that it is consistently populated across every index pattern, and record how a request is matched to documents, including what happens when a person appears under several identifiers.

Deleting documents from live indexes is a different job from removing them from snapshot repositories. A delete-by-query on the live indexes removes matching documents from the searchable data, but snapshots are point-in-time copies held in repositories, and those copies keep the personal data until the snapshot itself is deleted or ages out. Map each snapshot policy to the indexes it captures, check how long snapshots are kept, and confirm with your team whether a snapshot can be rewritten or must be expired as a whole. Index State Management can delete indexes when they age out, for example after 90 days, but that is an index-level control and does not target individual documents inside a snapshot.

The EDPB's February 2026 news on challenges hindering the full implementation of the right to erasure is a useful checklist for the gaps regulators have seen in practice. Design the snapshot retention window so that erasure can be carried out within it, for example by keeping snapshot lifetimes short enough that personal data does not persist beyond the retention period you have justified. Where a gap remains, such as backups that cannot practically be edited, document the reason, the retention period, the restricted access and the point at which the data expires. Confirm the position with your data protection officer before go-live.

Configuration sequence for GDPR-aware log storage

This sequence turns a log platform that may hold personal data into one where access, masking, retention and erasure are set deliberately and can be shown to work. Each step depends on a specific OpenSearch capability, so the order matters. The output is a tested configuration that your security and privacy teams can review.

  1. Classify log fields and set exclusion rules

    Your privacy lead and platform engineers list every log source feeding the cluster and mark each field as personal data, special category data, pseudonymous identifier or operational data. Decide which fields must never be logged, such as full request bodies, credentials and session tokens, and fix those exclusions in the shipping pipeline before data reaches the cluster. The step is done when the field inventory is signed off and each exclusion has a named owner and a test that proves the field is dropped at ingest.

  2. Enable TLS and SSO through the Security plugin

    Platform engineers enable TLS for node-to-node and client traffic and connect the cluster to your identity provider using one of the supported backends, such as SAML, OpenID Connect or LDAP and Active Directory. Named human accounts replace shared credentials so that every read of personal data can be attributed to a person. The step is done when a test login through the identity provider succeeds, unauthenticated requests are refused, and plaintext connections are rejected.

  3. Define roles with document and field security

    Security engineers create roles that limit each group to the indexes, documents and fields it needs. Document-level security restricts which records a role can see, for example one tenant or one business unit, and field-level security hides fields such as IP addresses or user identifiers from roles that do not need them. Confirm the exact role syntax and any limits for your OpenSearch version in the Security plugin documentation before you write the roles. The step is done when test users in each role return only the documents and fields their role allows.

  4. Apply field masking to sensitive string fields

    For string fields that analysts need to correlate but should not read in the clear, configure field masking. OpenSearch replaces the value with a cryptographic hash that differs by role and index, so the same person can be linked across events without exposing the original value. Masked fields cannot be searched on their plain value, so agree with the investigation team which fields need masking and which need full access. The step is done when a masked role returns hashed values for the chosen fields and a privileged role returns the originals.

  5. Configure audit logging for access to personal data

    Platform engineers enable the Security plugin audit log and set it to record authentication events, failed access attempts and read or search activity on indexes holding personal data. The audit trail must itself be stored where the people it records cannot change it, and access to it should be restricted to a small administrative group. Support for this evidence is what allows you to show who accessed a data subject's records. The step is done when a test search by a named user appears in the audit index and an attempt to alter the audit index is refused.

  6. Set ISM retention and deletion policies

    Platform engineers create Index State Management policies that move indexes through states and delete them when they age out. Set the retention period from the decision recorded in step one, and check that it matches the purpose and legal basis for each log source. Index State Management can delete indexes once they reach a set age, for example after 90 days, but you must confirm the exact policy syntax and whether deletion removes data from older snapshots. The step is done when a test index with a short test age is deleted by the policy on schedule and the deletion appears in the cluster logs.

  7. Plan snapshot retention and erasure handling

    Snapshots copy index data to a repository outside the live cluster, so an erasure in the live indexes does not remove the personal data from them. Privacy and platform teams agree how long snapshots are kept, how often they are taken, and how a deletion request is applied to them, such as by rotating snapshots to the retention window or by documenting a procedure for rewriting or deleting affected snapshots. Confirm the repository access controls with your storage team. The step is done when the snapshot schedule, retention rule and erasure procedure are written down and approved.

  8. Test a sample erasure and a snapshot restore

    Using a test record that is clearly marked as illustrative, the team deletes the record from the live index, confirms it no longer appears in search or through masked and restricted roles, and then restores the snapshot that contains it to a separate cluster. The restored copy shows whether the record can come back, which is the case the erasure procedure must cover. Record the results, the time taken and any gaps, and rerun the test after each change to roles, masking or snapshot settings. The step is done when the test result is documented and the gaps have owners.

How personal data moves through ingestion, access and retention

Application logs enter through an ingest pipeline where personal fields are redacted before indexing, so most personal data never reaches the live indexes. Inside the cluster, role-based access and field masking control what each support or analyst role can read, and Index State Management deletes indexes at the end of their retention period. Snapshot repositories sit outside that path and need their own erasure procedure, and support access from outside the trust boundary should be checked as a transfer question.

Personal data flow from ingestion through access, retention and snapshots.

Questions buyers ask about GDPR and OpenSearch logs

What does a GDPR personal data project for OpenSearch logs cost, and what drives it?

The cost depends mostly on the scope you set, not on the software, because OpenSearch itself carries no license fee. The main cost drivers are the field inventory (how many log sources and fields may contain personal data), the number of sources and index patterns to review, the snapshot design that determines how erasure reaches backups, and the access model that decides which roles see which fields. A quote should show each of these as a separate line, state what is one-time work (inventory, masking design, role model, retention configuration) and what recurs (periodic erasure requests, retention reviews, upgrades). Ask for the assumptions behind each line, including who performs the erasure procedure and how it is tested.

How long does a GDPR logging project take on OpenSearch?

Duration depends on the same drivers as cost: how many sources feed the cluster, how many fields need classification, how complex the existing snapshot and retention setup is, and how quickly your legal and data protection teams can decide on retention periods. No fixed duration applies to every environment, so treat any timeline without a written scope with suspicion. A fixed-scope engagement agrees deliverables and timing in writing before work starts, which lets you see which decisions gate the schedule. Ask the provider to name the decisions that must be made before build work can begin.

What must our organization supply before a GDPR logging project starts?

Three inputs matter most, and the work stalls without them. First, legal sign-off on the processing purposes and lawful basis for the logs, which determines what personal data may be kept and why. Second, a data map showing which applications write personal data into logs, which fields carry it, and where copies sit, including snapshot repositories and any remote backups. Third, a retention decision for each log category, stated as a period and an action at expiry (deletion, anonymization or archival). Article 17 erasure grounds and Article 32 security obligations both depend on these decisions being documented. You also need named owners for access approvals and for erasure requests.

Can our own team implement GDPR controls on OpenSearch without a partner?

Yes, if your team already runs OpenSearch in production and has the time and skills to manage the Security plugin, index lifecycle policies and snapshot repositories. The work involves configuring role-based access, document-level and field-level security, field masking, audit logging and TLS, then testing each control against your data map. Teams without that background often find the erasure design the hardest part, because deleting a record from a live index does not remove copies held in snapshots. A partner is most useful when the internal team lacks cluster operations experience or needs an independent review of the design. Either way, the controller remains responsible for compliance.

Is OpenSearch free to use for GDPR logging, or is there a paid edition?

OpenSearch is released under the Apache License, Version 2.0, and the OpenSearch FAQ does not describe any paid edition, so the software itself carries no license fee. Your costs come from infrastructure, storage, staff time and any services you buy, such as implementation or support. Confirm the current license terms and trademark policy directly on the project's FAQ before you rely on them in a procurement decision. Also check whether any third-party plugin or hosting service you add carries its own terms.

Do we need a certificate or audit to show GDPR compliance for our logs?

No. The GDPR requires no audit, attestation or certificate. Article 42 certification is voluntary, is issued for at most three years by accredited certification bodies or supervisory authorities, and does not reduce the controller's or processor's responsibility. What you need is evidence that your controls work: documented retention rules, role and field access configurations, erasure request records, and tested snapshot procedures. Independent auditors and certification bodies issue audit reports and certifications, and DeployOpen prepares systems, controls and evidence for such assessments but does not issue them.

How DeployOpen approaches GDPR-ready OpenSearch logging

DeployOpen plans, builds, tests, documents and supports self-hosted OpenSearch inside your own infrastructure, so personal data in logs is handled under controls you can review. We start from where personal data enters your logs, then design the access, masking, retention and erasure controls around that inventory. The GDPR does not require an audit or certificate, so we prepare the evidence your controller and auditors will ask for rather than issuing any assessment ourselves.

How we scope

  • We inventory the log sources and fields that may carry personal data, such as IP addresses, user IDs and free text.
  • We record which roles, teams and processors need read access to each index pattern and why.
  • Engagements are fixed-scope, with deliverables, timelines and responsibilities agreed in writing before work starts.

How we build

  • We configure the Security plugin with roles, document-level and field-level security, and field masking for sensitive fields.
  • We set Index State Management policies so indexes and their snapshots are deleted when the retention period you approve expires.
  • We test that masked fields cannot be read by unauthorized roles and that erasure steps remove data from indexes and snapshot repositories.

How we hand over

  • We document the data map, role matrix, masking rules, retention schedule and erasure runbook in a form your compliance team can review.
  • We deliver the audit logging and TLS settings for node and client traffic, with the configuration stored under version control.
  • We walk your operators through the erasure procedure and the checks that prove a request was completed.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, so controls keep pace with OpenSearch releases.
  • We can retest access controls and masking after configuration changes or new log sources are added.
  • We can confirm with your legal and privacy team which Article 17 grounds and Article 32 measures apply to your processing before we change 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.