Clear stored data
Removing data from StackState.
This page describes StackState version 4.1.
The StackState 4.1 version range is End of Life (EOL) and no longer supported. We encourage customers still running the 4.1 version range to upgrade to a more recent release.
The data in StackState is divided into three different sets:
- Elasticsearch data
- Kafka Topic data
- StackGraph data
With this much data to store, it is important to have the means to manage it. There is a standard 8 days data retention period set in StackState. This can be configured according to your needs using the StackState CLI or manually on each machine. Find out more about StackState data retention.
Clearing the data in StackState will remove any configured permissions from the system.
The StackState CLI needs access to the Admin API (default port 7071) to issue the command used below.
Running the StackState CLI delete command will:
- Stop all necessary services.
- Delete all topology and telemetry data. Note that, the Kafka topics folder needs to be deleted manually from the StackState server. The Kafka topics folder is located in
/opt/stackstate/var/lib/
and is namedkafka
. - Start StackState.
# Delete all topology and telemetry data
sts graph delete --all
# The Kafka topics folder needs to be deleted manually from the StackState server:
# /opt/stackstate/var/lib/kafka
Clearing the data in StackState will remove any configured permissions from the system.
Kubernetes
Linux
Please note that the below instructions are valid for a single node installation type. For a two-node installation, you need to stop the service corresponding to the node. For example,
systemctl stop stackgraph
for a StackGraph node.- 1.Stop the StackState and StackGraph services:systemctl stop stackstatesystemctl stop stackgraph
- 2.Remove the directory that holds the files:rm -rf /opt/stackstate/var/lib/*
- 3.Start the StackState and StackGraph services:systemctl start stackstatesystemctl start stackgraph
Last modified 2yr ago