Getting Data In

log file size Vs license size per day by specific index

ips_mandar
Builder

Hi,
I have one forwarederand one (IDX+SH). I am ingesting few hundreads of .txt files from HWF to one specific index. Now I want to know what log file size actually it has indexed per day vs what license volume it consumed per day for particular index.
Can any one help me with spl query? and is it possible to get actual .txt file size from splunk?
Thanks,

0 Karma

ips_mandar
Builder

hey splunkers, is there any way by which I can calculate splunk indexed actual log file size per day?
thanks,

0 Karma

codebuilder
Influencer

Yes, run the following search to get the info you are looking for:

|tstats count where index=* by source

Or replace "index=*" with the name of the index you are interested in.

----
An upvote would be appreciated and Accept Solution if it helps!
0 Karma

ips_mandar
Builder

@codebuilder It will provide count of lines by source but I want how much log size data(in MB/GB) is got indexed per day by specific index vs total license size (MB/GB) utilization per day.

0 Karma

codebuilder
Influencer

Try this:

index=_internal sourcetype=splunkd component=LicenseUsage idx=replace_with_your_index_name
| timechart span=1d sum(b) as Usage | eval Usage=round(Usage/1024/1024/1024,2)

Also, both the DMC and Master provide nice dashboards for monitoring both.

----
An upvote would be appreciated and Accept Solution if it helps!
0 Karma

ips_mandar
Builder

@codebuilder, Thanks but above query will provide license usage and I also want actual log file size which splunk has indexed per day. is it possible?

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...