If your Analytics data is taking up too much disk space, complete the following steps to
resolve the problem.
About this task
Analytics indices taking up too much space
Procedure
-
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.
-
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.
-
Reduce the retention period: Configuring data retention and index rollover time periods
-
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.