Getting Data In

how to throttle some data from being indexed

HadvoraMaya
New Member

Hi,

I have an event that is a real license consumer. I would like to throttle only this event. I want only 1 of 10 hits of the same event will be indexed. All other events will remain the same with no change.

How can I do that?

Thanks,
Michael

Tags (1)
0 Karma

FrankVl
Ultra Champion

You can drop events matching a certain regex by assigning them to the null queue:
http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Discard_specific_e...

Question is how you're going to decide which 1 event to keep and which 9 events to drop. If they are somewhat uniformly distributed across time, you could perhaps say everything with milisecond 1-9 goes to nullqueue and milisecond 0 goes to parsing queue or something, but that's rather tricky. But as you know the data, perhaps you can think of a field that provides some uniform distribution that you could use for making a 10%-90% split...

0 Karma

HadvoraMaya
New Member

I know the event's name. I just want it to filter out 90% of this event's beeing indexed.
Just need to be able to say that event name MM should be index 1 out of 10 events.

0 Karma

FrankVl
Ultra Champion

And as I mentioned: the only thing I can think of to do that is find a regex that (probably more or randomly) matches 10% of the events. E.g. by triggering of the milliseconds or maybe there is some incremental eventID where you could ignore all eventIDs that end with 1-9 and only accept eventIDs ending in 0 or something.

As mentioned: this is all not brilliantly reliable, but it's the best I can think of. As far as I know there is no way to tell splunk to let 1 out 10 events through.

0 Karma

FrankVl
Ultra Champion

How are you currently ingesting that data? On a UF or a HF, through what input method?

0 Karma

HadvoraMaya
New Member

I "Shoot" the data from the Application into Splunk engine via a specific port.
Not using Splunk Forwarder.

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...