Skip to content

Log deletion does not work #11926

Open
Open
@mac133k

Description

@mac133k

Describe the bug
2 deletion requests were submitted to Loki delete API. The requests were received and GET requests return their states as 'received', but that has not changed for 5 days now and the logs in question remain searchable. There have been no mentions of the deletion requests in Loki compactor logs since the submission confirmation.

To Reproduce
Submit the deletion request to Loki API using curl.
Check Loki logs and API for the status.
Wait...
Search for logs.

Expected behavior
The logs were expected to at least be removed from search results, but ideally from S3 storage too.

Environment:

  • Linux VMs, micro-services mode
  • Deployment tool: Ansible
  • Loki version: 2.9.1
  • Loki compactor and limits config blocs:
compactor:
  compaction_interval: 10m
  retention_delete_delay: 24h
  retention_enabled: true
  working_directory: /data1/loki/compactor
limits_config:
  cardinality_limit: 1000
  deletion_mode: filter-and-delete
  retention_period: 5y
  • Storage backend: on-prem S3 (Ceph)
  • Storage schema: v12 TSDB
  • IndexGWs are active in the cluster.

Please let me know if you need more information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions