Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Issues with Joining: Maybe there is a better way?

$
0
0
We have the following search that stopped working: | tstats summariesonly=true sum(everything.rawlen) as rawBytes from datamodel=storage_billing by splunk_server,index,everything.bucketId,host | rename everything.* as * | eval rawMBytes=rawBytes/1024/1024 | join splunk_server, bucketId [ dbinspect index=* | eval rawSizeMB=rawSize/1024/1024 | fields splunk_server, bucketId, path, state, startEpoch, endEpoch, modTime, sizeOnDiskMB,rawSizeMB ] | search state=cold | eval compression=sizeOnDiskMB/rawSizeMB, newRawMBytes = rawMBytes * compression | eventstats sum(rawMBytes), sum(newRawMBytes) by splunk_server, bucketId | eval margin_of_error= round( ( sizeOnDiskMB - 'sum(newRawMBytes)' ) / sizeOnDiskMB,4) | stats sum(newRawMBytes) as MBytes_Used, count(bucketId) as Bucket_Count by splunk_server,index,state,host | eval GBytes_Used=round(MBytes_Used/1024,2) | rename host as "Volume Name" | rename MBytes_Used as Space | eval "Copy Type"="Primary" | eval F4="Copy" | fields "Volume Name", Space, "Copy Type", F4 We have narrowed the issue down to ` join splunk_server, bucketId ` as when we run | tstats summariesonly=true sum(everything.rawlen) as rawBytes from datamodel=storage_billing by splunk_server,index,everything.bucketId,host | rename everything.* as * | eval rawMBytes=rawBytes/1024/1024 or | dbinspect index=* | eval rawSizeMB=rawSize/1024/1024 | fields splunk_server, bucketId, path, state, startEpoch, endEpoch, modTime, sizeOnDiskMB,rawSizeMB Separately, they work just fine. When we try to join then, thats when the search breaks. For reasons, this search is going back 7 years. Our current theory is that it is timing out before completion. Is there a way to streamline the search? Is `join` the right way to do this? is there a faster, better way to do this?

Viewing all articles
Browse latest Browse all 47296

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>