<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Audit Log: Can someone confirm that cache_size value associated with a search_id is actually the percentage of free space relative to disk quota set in the user's role? in Security</title>
    <link>https://community.splunk.com/t5/Security/Audit-Log-Can-someone-confirm-that-cache-size-value-associated/m-p/143429#M4377</link>
    <description>&lt;P&gt;I'll accept the answer; too bad that isn't related to solving my use case.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Dec 2014 17:54:35 GMT</pubDate>
    <dc:creator>Runals</dc:creator>
    <dc:date>2014-12-09T17:54:35Z</dc:date>
    <item>
      <title>Audit Log: Can someone confirm that cache_size value associated with a search_id is actually the percentage of free space relative to disk quota set in the user's role?</title>
      <link>https://community.splunk.com/t5/Security/Audit-Log-Can-someone-confirm-that-cache-size-value-associated/m-p/143427#M4375</link>
      <description>&lt;P&gt;I'm trying to do some work related to watching the disk allocation associated for any particular user. Through some convoluted searches it appears that the cache_size value associated with a search_id is actually the percentage of free space relative to disk quota as set in the user's role checked before the search is actually run (I guess technically the lowest value across all the roles assigned to a user). Can anyone confirm that by chance?&lt;/P&gt;

&lt;P&gt;To find the logs in question you can do the following search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit user=* action=quota cache_size=*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To test this I did a rest search on the jobs endpoint, converted the cumulative diskUsage to MB, and then subtracted that from the disk quota assigned to my test user. All searches were ad-hoc so had a 10 min TTL. At any rate the values seemed to be within reasonable range of each other.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:19:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Audit-Log-Can-someone-confirm-that-cache-size-value-associated/m-p/143427#M4375</guid>
      <dc:creator>Runals</dc:creator>
      <dc:date>2020-09-28T18:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Audit Log: Can someone confirm that cache_size value associated with a search_id is actually the percentage of free space relative to disk quota set in the user's role?</title>
      <link>https://community.splunk.com/t5/Security/Audit-Log-Can-someone-confirm-that-cache-size-value-associated/m-p/143428#M4376</link>
      <description>&lt;P&gt;cache_size is the raw # of searches that are cached in-memory in splunkd Quota Cache. It is for making quota checks faster.&lt;BR /&gt;
It is not a percentage&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2014 21:18:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Audit-Log-Can-someone-confirm-that-cache-size-value-associated/m-p/143428#M4376</guid>
      <dc:creator>arahut_splunk</dc:creator>
      <dc:date>2014-12-08T21:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Audit Log: Can someone confirm that cache_size value associated with a search_id is actually the percentage of free space relative to disk quota set in the user's role?</title>
      <link>https://community.splunk.com/t5/Security/Audit-Log-Can-someone-confirm-that-cache-size-value-associated/m-p/143429#M4377</link>
      <description>&lt;P&gt;I'll accept the answer; too bad that isn't related to solving my use case.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2014 17:54:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Audit-Log-Can-someone-confirm-that-cache-size-value-associated/m-p/143429#M4377</guid>
      <dc:creator>Runals</dc:creator>
      <dc:date>2014-12-09T17:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Audit Log: Can someone confirm that cache_size value associated with a search_id is actually the percentage of free space relative to disk quota set in the user's role?</title>
      <link>https://community.splunk.com/t5/Security/Audit-Log-Can-someone-confirm-that-cache-size-value-associated/m-p/143430#M4378</link>
      <description>&lt;P&gt;It looks like there is a log message in category "DispatchManager" at level "INFO" that will log the current usage and the quota when we check the quota before dispatching a job. &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;12-10-2014 17:45:32.362 -0800 INFO  DispatchManager - Checking search quota: usage.concurSearches=1, quota.concurSearches=50, usage.realtimeSearches=0, quota.realtimeSearches=100, usage.diskUsageMB=11, quota.diskUsageMB=10000&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;You'll need to add this line to log.cfg:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;category.DispatchManager=INFO&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;As far as what the log message is communicating, it is the disk space used for a given user as far as the quota enforcement in splunk is concerned (triggered when that user has the quota checked). It unfortunately doesn't have the user in it. However I think you can piece together the info you want assuming you have the INFO level messages with a search like this:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;index=_internal sourcetype=splunkd component=DispatchManager  log_level=INFO (enforceQuotas OR  diskUsageMB) | rex field=message  "enforceQuotas((?[^,]*)," |  transaction  maxevents=2  startswith="enforceQuotas" endswith="diskUsageMB" | timechart  avg(usage_diskUsageMB) by user&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;This uses a second message that will always be output before we check the quota.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:21:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Audit-Log-Can-someone-confirm-that-cache-size-value-associated/m-p/143430#M4378</guid>
      <dc:creator>cpride_splunk</dc:creator>
      <dc:date>2020-09-28T18:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Audit Log: Can someone confirm that cache_size value associated with a search_id is actually the percentage of free space relative to disk quota set in the user's role?</title>
      <link>https://community.splunk.com/t5/Security/Audit-Log-Can-someone-confirm-that-cache-size-value-associated/m-p/143431#M4379</link>
      <description>&lt;P&gt;Is this a 6.2 thing - or at least post 6.1.3?; I'm not seeing it in my 6.1.3 system. I'm guessing/hoping the diskUsageMB is related back to the user vs simply the size of the available space being used. I'm also not seeing anything to link this back to a specific user which is what I'm hoping to see. There are certainly uses for looking at this at a system level but isn't what I'm looking for in terms of my use case. What I don't want to have to resort to doing is run a scheduled REST search every 10 minutes to get the diskUsage per user.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2014 17:15:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Audit-Log-Can-someone-confirm-that-cache-size-value-associated/m-p/143431#M4379</guid>
      <dc:creator>Runals</dc:creator>
      <dc:date>2014-12-11T17:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Audit Log: Can someone confirm that cache_size value associated with a search_id is actually the percentage of free space relative to disk quota set in the user's role?</title>
      <link>https://community.splunk.com/t5/Security/Audit-Log-Can-someone-confirm-that-cache-size-value-associated/m-p/143432#M4380</link>
      <description>&lt;P&gt;It looks like it has been around for quite a while, I had to add this line to log.cfg:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;category.DispatchManager=INFO&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;As far as what the log message is communicating, it is the disk space used for a given user as far as the quota enforcement in splunk is concerned (triggered when that user has the quota checked). I agree it is unfortunate that this message doesn't have the user in it. However I think you can piece together the info you want assuming you have the INFO level messages with a search like this:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;index=_internal sourcetype=splunkd&lt;BR /&gt;
component=DispatchManager&lt;BR /&gt;
log_level=INFO (enforceQuotas OR&lt;BR /&gt;
diskUsageMB) | rex field=message&lt;BR /&gt;
"enforceQuotas((?[^,]*)," |&lt;BR /&gt;
transaction  maxevents=2&lt;BR /&gt;
startswith="enforceQuotas"&lt;BR /&gt;
endswith="diskUsageMB" | timechart&lt;BR /&gt;
avg(usage_diskUsageMB) by user&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:21:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Audit-Log-Can-someone-confirm-that-cache-size-value-associated/m-p/143432#M4380</guid>
      <dc:creator>cpride_splunk</dc:creator>
      <dc:date>2020-09-28T18:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Audit Log: Can someone confirm that cache_size value associated with a search_id is actually the percentage of free space relative to disk quota set in the user's role?</title>
      <link>https://community.splunk.com/t5/Security/Audit-Log-Can-someone-confirm-that-cache-size-value-associated/m-p/143433#M4381</link>
      <description>&lt;P&gt;Ah - hadn't thought about the log.cfg. Will have to monkey around with this. Appreciate it!&lt;/P&gt;</description>
      <pubDate>Sat, 13 Dec 2014 21:31:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Audit-Log-Can-someone-confirm-that-cache-size-value-associated/m-p/143433#M4381</guid>
      <dc:creator>Runals</dc:creator>
      <dc:date>2014-12-13T21:31:58Z</dc:date>
    </item>
  </channel>
</rss>

