{"id":1437,"date":"2015-02-03T11:24:50","date_gmt":"2015-02-03T03:24:50","guid":{"rendered":"https:\/\/cowmanchiang.me\/wp\/?p=1437"},"modified":"2023-10-31T15:43:50","modified_gmt":"2023-10-31T07:43:50","slug":"splunk-get-the-quota-exceeded-count","status":"publish","type":"post","link":"https:\/\/cowmanchiang.me\/wp\/?p=1437","title":{"rendered":"[Splunk] Get the quota exceeded count"},"content":{"rendered":"<p>When we want to find some way to get the count of the quota exceed event, we might find this page <a href=\"http:\/\/wiki.splunk.com\/Community:TroubleshootingIndexedDataVolume\">&#8220;Splunk > Wiki : Community:TroubleshootingIndexedDataVolume Troubleshooting Indexed Data Volume&#8221;<\/a>.<\/p>\n<p>Then we could use the following to get the count.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"\">index=_internal source=*license_audit.log LicenseManager-Audit  \n| streamstats current=f global=f window=1 first(quotaExceededCount) as next_quotaExceededCount by host \n| eval quotadiff = next_quotaExceededCount - quotaExceededCount \n| search quotadiff&gt;0<\/pre>\n<p>But in my case, I only want to know the last value of the quotaExceededCount. So I modified it.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"\">index=_internal licensemanager | stats first(quotaExceededCount) by host<\/pre>\n<p>Finally, I would use the quotaExceededCount value to judge is not able to import data.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When we want to find some way to get the count of the quota exceed event, we might find this page &#8220;Splunk > Wiki : Community:TroubleshootingIndexedDataVolume Troubleshooting Indexed Data Volume&#8221;. Then we could use the following to get the count. &hellip; <a href=\"https:\/\/cowmanchiang.me\/wp\/?p=1437\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77],"tags":[],"class_list":["post-1437","post","type-post","status-publish","format-standard","hentry","category-splunk"],"_links":{"self":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1437"}],"version-history":[{"count":1,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1437\/revisions"}],"predecessor-version":[{"id":1934,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1437\/revisions\/1934"}],"wp:attachment":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}