Getting Data In

Delete an old host from hostlist

New Member

I want to completely delete a host from splunk, because the host is no longer existing in my environment.
I dont need any data from this host, so I can clean up some space on the splunk server hard disk.

Is this possible via GUI or CLI?

Thank you
regards
Michael

Tags (3)
0 Karma

Splunk Employee
Splunk Employee

No you cannot remove the events from a particular host to make space in the indexes.
Because the data is stored in buckets (lowest unit of storage based on the time) and you will have to delete the bucket to make space, this means potentially data from other hosts also stored in the same bucket.

You will have to wait for your time/size retention rules to kick in in order to make space, indistinctly of the host.
The partial alternative is to use the "|delete" command, that will hide the events, not save any disk space.

SplunkTrust
SplunkTrust

This would be related to the metadata still available for this host. When your deleted data (buckets) gets frozen/deleted, this host will no longer be listed.
As @yannK wrote, you can manually delete buckets but this is potentially dangerous.

0 Karma

New Member

I have already used the | delete option to hide the unwanted logs.
But what I want is also to delete the host from the hostlist, because the host is already decommissioned.

0 Karma