<?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 How to periodically clean the Splunk ES asset list? in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-periodically-clean-the-Splunk-ES-asset-list/m-p/758236#M12838</link>
    <description>&lt;P&gt;In Splunk ES there is an asset list, "&lt;EM&gt;asset_lookup_by_str&lt;/EM&gt;". This list contains the output from merging asset list input lookups. This merging process is happening "under the hood" in Splunk ES, it's not a normal saved search (even though part of the process seems to be the running of a search with the "&lt;EM&gt;entitymerge&lt;/EM&gt;" command).&lt;/P&gt;&lt;P&gt;Typically, over time this merged asset list will collect outdated information, e.g. DNS names no longer in use. Also, with dynamic IPs on assets, this quickly creates strangeness in the list. There is no good out-of-the-box solution for dealing with this, as far as I know. The only solution that is provided by Splunk ES, is to use the "&lt;EM&gt;Reset collections&lt;/EM&gt;" button on the "&lt;EM&gt;Asset and Identity management&lt;/EM&gt;" page, which will delete the whole asset list, and let it be rebuilt with fresh data from your input asset lookups (see attached screenshot).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My question is thus, to make sure the asset list in Splunk ES is updated and free of junk, how can you periodically reset the list?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;One would think that there was a REST endpoint you could use to trigger "reset collections", but I cannot find any. Under are some other possible solutions that I've tested, but can not get to work&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Deleting the asset list with "outputlookup":&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;| outputlookup "asset_lookup_by_str"&lt;/PRE&gt;&lt;P&gt;Running the command above would indeed delete the list (make it empty). However, the asset list framework in Splunk ES will not "notice" that the list is deleted, and thus not rebuild it. It seems that clicking the "Reset collections" button in the GUI also updates some checkpoint, which triggers a rebuild. I've found no way of manually duplicate this "checkpoint update" behaviour.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Deleting the asset list with "outputlookup", and rebuilding it manually with "entitymerge":&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You might suggest that I could delete the list manually, and rebuild it with the enitymerge command. The search for this is even pre-created and ready for use in the&amp;nbsp;"&lt;EM&gt;Asset and Identity management&lt;/EM&gt;" pages. However, the input asset lookups are hardcoded in the search, meaning that in the future, if you add or remove input asset lookups, the search need to updated as well. This does not seem like a good long term solution. Automatically updating the search based on the input asset lookups seems to require custom scripts, and would be complicated.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Deleting the asset list with the "identdelete" command:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;| identdelete collection="assets_by_str"&lt;/PRE&gt;&lt;P&gt;The "&lt;EM&gt;identdelete&lt;/EM&gt;" is a undocumented command in Splunk, but looking at the internal logs when using the&amp;nbsp;"&lt;EM&gt;Reset collections&lt;/EM&gt;" button, you can find it. It seems from the name of the command that it might be useful, but I've found that it in fact does nothing. See example of the ootb identdelete search that is run when clicking "&lt;EM&gt;Reset collections&lt;/EM&gt;" below (in this case for the asset CIDR list, but it's the same).&lt;/P&gt;&lt;PRE&gt;| `add_entity_source("frothly_aws_assets_2018","frothly_aws_assets_2018")` &lt;BR /&gt;| `add_entity_source("frothly_assets_2018","frothly_assets_2018")` &lt;BR /&gt;| table "_source","cim_entity_zone","bunit","category","city","country","dns","ip","is_expected","lat","long","mac","nt_host","owner","pci_domain","priority","requires_av","should_timesync","should_update" &lt;BR /&gt;| `make_ip_cidr` &lt;BR /&gt;| inputlookup append=T "asset_lookup_by_cidr" &lt;BR /&gt;| entitymerge "asset" &lt;BR /&gt;| outputlookup append=T "asset_lookup_by_cidr" &lt;BR /&gt;| head 1 &lt;BR /&gt;| identdelete collection="assets_by_cidr"&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;Manually clicking the "Reset collections" button:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This is not a feasible solution.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hettervik_0-1770812619709.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/41393i6BFEEB021F64F125/image-size/large?v=v2&amp;amp;px=999" role="button" title="hettervik_0-1770812619709.png" alt="hettervik_0-1770812619709.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Feb 2026 12:27:38 GMT</pubDate>
    <dc:creator>hettervik</dc:creator>
    <dc:date>2026-02-11T12:27:38Z</dc:date>
    <item>
      <title>How to periodically clean the Splunk ES asset list?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-periodically-clean-the-Splunk-ES-asset-list/m-p/758236#M12838</link>
      <description>&lt;P&gt;In Splunk ES there is an asset list, "&lt;EM&gt;asset_lookup_by_str&lt;/EM&gt;". This list contains the output from merging asset list input lookups. This merging process is happening "under the hood" in Splunk ES, it's not a normal saved search (even though part of the process seems to be the running of a search with the "&lt;EM&gt;entitymerge&lt;/EM&gt;" command).&lt;/P&gt;&lt;P&gt;Typically, over time this merged asset list will collect outdated information, e.g. DNS names no longer in use. Also, with dynamic IPs on assets, this quickly creates strangeness in the list. There is no good out-of-the-box solution for dealing with this, as far as I know. The only solution that is provided by Splunk ES, is to use the "&lt;EM&gt;Reset collections&lt;/EM&gt;" button on the "&lt;EM&gt;Asset and Identity management&lt;/EM&gt;" page, which will delete the whole asset list, and let it be rebuilt with fresh data from your input asset lookups (see attached screenshot).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My question is thus, to make sure the asset list in Splunk ES is updated and free of junk, how can you periodically reset the list?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;One would think that there was a REST endpoint you could use to trigger "reset collections", but I cannot find any. Under are some other possible solutions that I've tested, but can not get to work&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Deleting the asset list with "outputlookup":&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;| outputlookup "asset_lookup_by_str"&lt;/PRE&gt;&lt;P&gt;Running the command above would indeed delete the list (make it empty). However, the asset list framework in Splunk ES will not "notice" that the list is deleted, and thus not rebuild it. It seems that clicking the "Reset collections" button in the GUI also updates some checkpoint, which triggers a rebuild. I've found no way of manually duplicate this "checkpoint update" behaviour.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Deleting the asset list with "outputlookup", and rebuilding it manually with "entitymerge":&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You might suggest that I could delete the list manually, and rebuild it with the enitymerge command. The search for this is even pre-created and ready for use in the&amp;nbsp;"&lt;EM&gt;Asset and Identity management&lt;/EM&gt;" pages. However, the input asset lookups are hardcoded in the search, meaning that in the future, if you add or remove input asset lookups, the search need to updated as well. This does not seem like a good long term solution. Automatically updating the search based on the input asset lookups seems to require custom scripts, and would be complicated.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Deleting the asset list with the "identdelete" command:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;| identdelete collection="assets_by_str"&lt;/PRE&gt;&lt;P&gt;The "&lt;EM&gt;identdelete&lt;/EM&gt;" is a undocumented command in Splunk, but looking at the internal logs when using the&amp;nbsp;"&lt;EM&gt;Reset collections&lt;/EM&gt;" button, you can find it. It seems from the name of the command that it might be useful, but I've found that it in fact does nothing. See example of the ootb identdelete search that is run when clicking "&lt;EM&gt;Reset collections&lt;/EM&gt;" below (in this case for the asset CIDR list, but it's the same).&lt;/P&gt;&lt;PRE&gt;| `add_entity_source("frothly_aws_assets_2018","frothly_aws_assets_2018")` &lt;BR /&gt;| `add_entity_source("frothly_assets_2018","frothly_assets_2018")` &lt;BR /&gt;| table "_source","cim_entity_zone","bunit","category","city","country","dns","ip","is_expected","lat","long","mac","nt_host","owner","pci_domain","priority","requires_av","should_timesync","should_update" &lt;BR /&gt;| `make_ip_cidr` &lt;BR /&gt;| inputlookup append=T "asset_lookup_by_cidr" &lt;BR /&gt;| entitymerge "asset" &lt;BR /&gt;| outputlookup append=T "asset_lookup_by_cidr" &lt;BR /&gt;| head 1 &lt;BR /&gt;| identdelete collection="assets_by_cidr"&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;Manually clicking the "Reset collections" button:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This is not a feasible solution.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hettervik_0-1770812619709.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/41393i6BFEEB021F64F125/image-size/large?v=v2&amp;amp;px=999" role="button" title="hettervik_0-1770812619709.png" alt="hettervik_0-1770812619709.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 12:27:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-periodically-clean-the-Splunk-ES-asset-list/m-p/758236#M12838</guid>
      <dc:creator>hettervik</dc:creator>
      <dc:date>2026-02-11T12:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to periodically clean the Splunk ES asset list?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-periodically-clean-the-Splunk-ES-asset-list/m-p/759134#M12855</link>
      <description>&lt;P&gt;We've found a way to automate a delete and rebuild of the Splunk ES asset list. We checked with Splunk Support, and as of this post, there is no endpoint you can use to trigger "Reset collections". However, we've learned that Splunk ES triggers a rebuild of the asset list "asset_lookup_by_str" when new information is available in any of the input lookup asset lists. So, we've made a job that delete&amp;nbsp;"asset_lookup_by_str", and then updates a dummy lookup with a dummy asset, to trigger a asset list rebuild. See steps below.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 1: Create a dummy asset lookup input:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a new lookup file CSV named "dummy_asset_list.csv" (or something like that)&lt;/LI&gt;&lt;LI&gt;Create a corresponding lookup definition "dummy_asset_list"&lt;/LI&gt;&lt;LI&gt;Add the lookup "dummy_asset_list" as an asset list input in the Splunk ES asset framework&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Step 2: Schedule the following job:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class=""&gt;| outputlookup asset_lookup_by_str
| table ip,mac,nt_host,dns,owner,priority,lat,&lt;SPAN class=""&gt;long&lt;/SPAN&gt;,city,country,bunit,category,pci_domain,is_expected,should_timesync,should_update,requires_av&lt;BR /&gt;| append [| makeresults | eval dns="dummyasset_updated:"+tostring(now()) | table dns]&lt;BR /&gt;| outputlookup dummy_asset_list.csv&lt;/PRE&gt;&lt;P&gt;Explanation: The job deletes "asset_lookup_by_str" with the outputlookup command, and then overwrites the dummy asset list input with a new dummy asset, containing an epoch timestamp in the name for uniqueness. The "new asset updates" background check from ES runs on a 5 minute interval, meaning that the asset list "asset_lookup_by_str" will be rebuild in at most 5 minutes.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2026 11:07:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-periodically-clean-the-Splunk-ES-asset-list/m-p/759134#M12855</guid>
      <dc:creator>hettervik</dc:creator>
      <dc:date>2026-03-09T11:07:09Z</dc:date>
    </item>
  </channel>
</rss>

