Analytics running out of disk space on Kubernetes

If your Analytics data is taking up too much disk space, complete the following steps to resolve the problem.

Before you begin

This operation requires the use of the Analytics CLI. Using the Analytics CLI.

About this task

Analytics indices taking up too much space

Procedure

  1. Run the following command to display the indices:
    apic --mode analytics clustermgmt:catIndices --server [SERVER] --analytics-service [ANALYTICS SERVICE]
    where:
    • SERVER is the Management server admin endpoint.
    • ANALYTICS SERVICE is the name of Analytics service as configured in the Cloud Manager.
  2. Find the old and large indices that can be deleted, and delete each index using the following command:
    apic --mode analytics clustermgmt:deleteIndex --index <index_name> --server [SERVER] --analytics-service [ANALYTICS SERVICE] --format json
    where:
    • SERVER is the Management server admin endpoint.
    • ANALYTICS SERVICE is the name of Analytics service as configured in the Cloud Manager.
  3. Reduce the retention period: Configuring data retention and index rollover time periods
  4. Apply a filter to reduce the index size is by excluding large fields, such as response_body, from being saved in the index.

    For example:

    filter {
      if "apicapievent" in [tags] {
         mutate {
                remove_field => ["response_body"]
            }
      }
    }

    For information on creating filters for Analytics data, see Modifying incoming analytics data.