Getting Data In

How much are we indexing per index

bohrasaurabh
Communicator

How can I query how much data are we indexing per index for last 7 days. We are on Splunk 6.0.1

Tags (2)
0 Karma
1 Solution

somesoni2
Revered Legend

Try this

index=_internal source=*metrics.log group=per_index_thruput series!="_*"  | bucket span=1d _time  | eval totalMB = round(kb/1024,4) | eval Date=strftime(_time,"%Y-%m-%d") | chart sum(totalMB) over series by Date

View solution in original post

somesoni2
Revered Legend

Try this

index=_internal source=*metrics.log group=per_index_thruput series!="_*"  | bucket span=1d _time  | eval totalMB = round(kb/1024,4) | eval Date=strftime(_time,"%Y-%m-%d") | chart sum(totalMB) over series by Date

lukejadamec
Super Champion

You can something try this:

index=_internal source=*metrics.log group=per_index_thruput series!="_*" | eval totalGB = (kb/1024)/1024 | timechart span=7d sum(totalGB)

0 Karma

bohrasaurabh
Communicator

I am looking for a query which can output index and its usage. Something like below
name day1 day2 day3 day4 day5 day6 day7
index_a 1.2 1.3 1.5 1.1 1.7 0.9 1.1
index_b 3.2 3.2 3.5 3.7 4.0 3.2 3.2

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...