Getting Data In

Delete an old host from hostlist

Michael0
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

yannK
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.

MuS
Legend

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

Michael0
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
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...