Getting Data In

Does Splunk count the incoming uncompressed data, or the compressed raw data against your license?

ankithreddy777
Contributor

I learned that Splunk compresses the incoming data and creates some index files to point towards compressed raw data. How does Splunk license account for this? Does Splunk charge license for uncompressed incoming data or for the compressed raw data?

0 Karma

beatus
Communicator

Splunk will calculate license volume based on the uncompressed size of the data, regardless of how that data makes it to Splunk. Compression features are there for cost savings at a storage level and network link level.

See: http://blogs.splunk.com/2016/05/06/what-size-should-my-splunk-license-be/

somesoni2
Revered Legend

Splunk license is calculated as the amount of data indexed (which includes creating compressed raw data and index files).

Update

This actually is not true. See the comment below from @mmodestino_splunk.

All that matters is how much raw data makes it into the indexing pipeline (after any filtering).


Licensing is not how much data is in your index, it is how much data did the indexer have to index.
0 Karma

ankithreddy777
Contributor

suppose if there is 100GB incoming uncompressed data . splunk compressed the data to 15GB and created index files of 35GB , i.e 50GB stored on disk. So license will be charged for 100GB or 50GB

0 Karma

mattymo
Splunk Employee
Splunk Employee

it will be 100 GB. There is no need to confuse things with how splunk compresses and stores the data.

If you send 100GB to the indexing pipeline, you are using 100GB of license.

- MattyMo

ankithreddy777
Contributor

Thank you, I have a file thats being ingested to splunk index. Why I am getting different values for the two queries below to find the daily ingestion rate.

1)

index=_internal source=*license_usage.log type="Usage" | eval h=if(len(h)=0 OR isnull(h),"(SQUASHED)",h) | eval s=if(len(s)=0 OR isnull(s),"(SQUASHED)",s) | eval idx=if(len(idx)=0 OR isnull(idx),"(UNKNOWN)",idx) | stats sum(b) as b by idx| eval GB=(((b/1024)/1024))/1000

2)

index=_internal source="/opt/splunk/var/log/splunk/metrics.log" series=index_name  | eval MB=kb/1024 | search group="per_index_thruput" | timechart span=1d sum(MB) by series
0 Karma

beatus
Communicator

See here: http://wiki.splunk.com/Community:TroubleshootingIndexedDataVolume

Metrics.log is only a sampling. license_usage.log is the ground truth.

somesoni2
Revered Legend

It'll be 50 GB, which is basically what Splunk is saving under it's indexes. Besides, there are situations where you filter the data before indexing (to save license volume by removing junk data) OR mask some data , hence incoming data size can't be considered by license volume.

0 Karma

mattymo
Splunk Employee
Splunk Employee

I think we are confusing things a bit here...

All that matters is how much raw data makes it into the indexing pipeline (after any filtering).

Licensing is not how much data is in your index, it is how much data did the indexer have to index.

- MattyMo

somesoni2
Revered Legend

You're right. I got confused with index size vs license size. The uncompressed data going to indexing pipeline will indeed be the license usage.

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...