Getting Data In

Can you configure the Receiver stanza to have a Persistent Queue?

kuroai
New Member

Hi All,

sorry if this is a stupid question.

When you configure a Intermediate Heavy Forwarder(Non-Indexing) receiver.
Can you add a persistent Que within this to avoid data loss for a period the upstream indexer is unavailable?

[splunktcp://9997]
persistentQueueSize=100MB <--- ???
disabled = 0

I've seen the docs and it's mostly around UF's and types of ephemeral connections, though it doesn't stipulate wither this can be done on the receiver. Though I imagine someone will tell me there's a better way to configure this.

Thanks in advance.

0 Karma

adonio
Ultra Champion

yes sir, you are on the right track

Filename: inputs.conf
Server: Intermediate forwarder
Input Stanza:
[some_input://<port_num>]
persistentQueueSize = <integer>(KB|MB|GB|TB)
* Max size of the persistent queue file on disk

The persistent queue stores the data on the disk. By default, forwarders and indexers have an in-memory input queue of 500KB.

The steps to calculate the desired size of the persistent queue:
1. Predicted Traffic in GB /Number of servers(IF|HF) = Predicted Traffic on each server in GB
2. Predicted Traffic on each server / 24 (hours in a day) = data indexed/generated in 1 hour
3. If we consider the downtime of 1 hour, the value generated above( data indexed/generated in 1 hour ) should be the size of the persistent queue.

For example, suppose the daily data traffic is 400GB and there are 2 intermediate forwarders, each will have 200GB data.
If we want to have a persistent queue for the downtime of 1 hour, the size of the persistent queue should be 200/24 = 8.33 i.e ~8 GB.

hope it helps

0 Karma

rajashaey
Explorer

Can I configure something like this? 

[default]
persistentQueueSize=100MB

 

so that it will applied for all the inputs?

0 Karma

PickleRick
SplunkTrust
SplunkTrust

1. This is a very old thread. Starting a new one would give you more visibility.

2. Well, not every type of input supports this parameter so I'm not sure if specifying it here is syntactically correct. Try and see (with btool check)

0 Karma

kuroai
New Member

Thanks for the detailed answer Adonio!

I'll give it ago and see how I get on.

0 Karma
Get Updates on the Splunk Community!

What's New in Splunk Cloud Platform 9.3.2411?

Hey Splunky People! We are excited to share the latest updates in Splunk Cloud Platform 9.3.2411. This release ...

Buttercup Games: Further Dashboarding Techniques (Part 6)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...