|
I will have two Splunk Servers, one called Central and the other Remote. Remote will have a 1 week retention and be used to index our hosted nodes and applications. I would like Central to connect to Remote daily to retrieve and store data for analysis and archiving. Central will only have ssh access to Remote. Would having a scripted-input on Central that connects to Remote to force a hot to warm bucket roll and then copy this data back to Central work? |
|
Yeah, that seems like that could work. I would suggest using something like Of course using a forwarder instead does have many advantages, but in theory I don't see why this general approach wouldn't work for you. As an example, you'd probably want something like this:
That's just and idea to get you started; you should obviously verify all the options yourself. Be sure to write back and let us know what you come up with. Thanks for the example. I will create a script and test out rsync and report back soon.
(04 Oct '10, 18:48)
cbse120109
So to resolve this issue I had to do the following. Configure Splunk Retention for MaxWarmDB = 1 and frozenTimeInSec = 604800. This allows only one warm db to exist and 7 day retention in cold. I have a script that will force a hot to warm roll and then rsync the warmdb back to central. Thanks to Lowell, i modified his example to work for what we need. rsync -va --rsh=ssh --exclude "/db/hot*[0-9]" root@$REMOTE:$SPLUNK/var/lib/splunk/defaultdb/ /$SPLUNK/var/lib/splunk/$CUSTOMDB
(15 Oct '10, 20:23)
cbse120109
This question is answered
(15 Oct '10, 20:25)
cbse120109
To mark a question as answered, please click the check mark next to the answer that was the most helpful. Otherwise this site will consider this question unanswered.
(15 Oct '10, 21:00)
Lowell ♦
BTW, you may want to think about setting "
(15 Oct '10, 21:04)
Lowell ♦
Thanks, I finally found the answer button.
(17 Oct '10, 03:58)
cbse120109
showing 5 of 6
show 1 more comments ▼
|
|
You could have Remote store and forward data to Central, so Remote would act as both an Indexer and a Forwarder. However, you cannot do the forwarding on a batch basis. Forwarding happens in near realtime. You can, however, throttle the stream from the forwarder if you are worried about network bandwidth between Central and Remote. Store and Forward is covered after Step 6 here: http://www.splunk.com/base/Documentation/latest/Admin/Enableforwardingandreceiving#Set_up_regular_forwarding_with_Splunk_Web Thanks, the issue is that Central and Remote will be in different sites and the only connection between them needs to be established from Central via ssh over the internet.
(01 Oct '10, 21:46)
cbse120109
|
