Skip to content

Instantly share code, notes, and snippets.

@automine
Created October 20, 2016 15:20
Show Gist options
  • Save automine/50f98c3771d103d785c332eed3068c1f to your computer and use it in GitHub Desktop.
Save automine/50f98c3771d103d785c332eed3068c1f to your computer and use it in GitHub Desktop.
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 | timechart span=1d sum(b) AS volumeB by st fixedrange=false | join type=outer _time [search index=_internal source=*license_usage.log type="RolloverSummary" earliest=-30d@d | eval _time=_time - 43200 | bin _time span=1d | stats latest(stacksz) AS "stack size" by _time] | fields - _timediff | foreach * [eval <<FIELD>>=round('<<FIELD>>'/1024/1024/1024, 3)] | fields - "stack size"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment