Deployment Architecture

How to roll all hot buckets from hot to warm?

varad_joshi
Communicator

There is a command which can roll an index from hot to warm -

 splunk _internal call /data/indexes/<index_name>/roll-hot-buckets –auth (admin_username):(admin_password)

Is there a way we can roll all the index instead of rolling one by one?

richarddicaire
Path Finder

After a rolling restart of 26 indexers, I show 162 indexes in state: Cannot fix search count as the bucket hasn't rolled yet.

I get this state every time I perform this rolling restart, which is done during off hours to reduce overhead.

0 Karma

Runals
Motivator

Restart Splunk 😃

MuS
SplunkTrust
SplunkTrust

True, but like @esix_splunk asked : why would you do this? Backup?

0 Karma

MuS
SplunkTrust
SplunkTrust

Hi varad_joshi,

according to the docs http://docs.splunk.com/Documentation/Splunk/6.4.3/Indexer/Backupindexeddata#Rolling_buckets_manually... where you find the example command, it is done per index. But I'm sure you can script it and loop over all indexes if needed.

Hope this helps ...

cheers, MuS

varad_joshi
Communicator

Thanks for the answer. Yes, I got the command from the same link. I wanted to check if there is a Splunk command to move all the index data at once.

If not then Splunk should come up with one 🙂

0 Karma

gfuente
Motivator

Hello

If you force a restart of all peers, during the proccess all hot buckets will roll to warm.

So you can use the rolling restart command:

http://docs.splunk.com/Documentation/Splunk/6.4.3/Indexer/Userollingrestart

Regards

0 Karma

esix_splunk
Splunk Employee
Splunk Employee

A restart will roll all buckets, in all indexes, from hot to warm.

The real question is, why are you wanting to do this?

0 Karma

splunkreal
Motivator

for backup purpose?

* If this helps, please upvote or accept solution 🙂 *
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...