Hi @Yashvik, if you're not interested to the value for each sourcetype, but only to know which sourcetypes are in an index, you cam modify the above search in this way: index=_internal source=*lice...
See more...
Hi @Yashvik, if you're not interested to the value for each sourcetype, but only to know which sourcetypes are in an index, you cam modify the above search in this way: 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)
| bin _time span=1d
| stats sum(b) as b by _time, pool, s, st, h, idx
| bin span=1d _time
| stats values( st) AS sourcetype sum(b) AS volumeB by _time idx
| rename idx AS index
| eval volumeB=round(volumeB/1024/1024/1024,2)
| sort 20 -volumeB Ciao. Giuseppe