<?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: Search usage of Indexes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-usage-of-Indexes/m-p/706345#M239045</link>
    <description>&lt;P&gt;What do you mean with that?&lt;BR /&gt;i didnt meant to ask my question in a way that i would want to replace docs and management with tools.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2024 14:15:29 GMT</pubDate>
    <dc:creator>TheEggi98</dc:creator>
    <dc:date>2024-12-09T14:15:29Z</dc:date>
    <item>
      <title>Search usage of Indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-usage-of-Indexes/m-p/706144#M238996</link>
      <description>&lt;P&gt;Hi there&lt;BR /&gt;&lt;BR /&gt;im currently at a search to get the usage of Indexes, so i have an overview which indexes gets used in searches and which indexes doesnt so i can speak with the usecase owner if the data is still needed and why it doesnt get used.&lt;BR /&gt;&lt;BR /&gt;Thats the current state of the search:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest "/services/data/indexes"
| table title totalEventCount frozenTimePeriodInSecs
| dedup title
| append 
    [search index=_audit sourcetype="audittrail" search_id="*" action=search earliest=-24h latest=now

``` Regex Extraction ```
| rex field=search max_match=0 "index\=\s*\"?(?&amp;lt;used_index&amp;gt;\S+)\"?"
| rex field=search max_match=0 "\`(?&amp;lt;used_macro&amp;gt;\S+)\`"
| rex field=search max_match=0 "eventtype\=\s*(?&amp;lt;used_evttype&amp;gt;\S+)"

``` Eventtype resolving ```
| mvexpand used_evttype
| join type=left used_evttype 
    [| rest "/services/saved/eventtypes"
| table title search
    | stats values(search) as search by title
| rename search as resolved_eventtype, title as used_evttype]
| rex field=resolved_eventtype max_match=0 "eventtype\=\s*(?&amp;lt;nested_eventtype&amp;gt;\S+)"
| mvexpand nested_eventtype
| join type=left nested_eventtype 
    [| rest "/services/saved/eventtypes"
| table title search
| stats values(search) as search by title
| rename search as resolved_nested_eventtype, title as nested_eventtype]

``` Macro resolving ```
| mvexpand used_macro
| join type=left used_macro 
    [| rest "/servicesNS/-/-/admin/macros" count=0
| table title definition
| stats values(definition) as definition by title
| rename definition as resolved_macro, title as used_macro]
| rex field=resolved_macro max_match=0 "\`(?&amp;lt;nested_macro&amp;gt;[^\`]+)\`"
| mvexpand nested_macro
| join type=left nested_macro 
    [| rest "/servicesNS/-/-/admin/macros" count=0
| table title definition
| stats values(definition) as definition by title
| rename definition as resolved_nested_macro, title as nested_macro]
| where like(resolved_nested_macro,"%index=%") OR isnull(resolved_nested_macro)

``` merge resolved stuff into one field ```
| foreach used* nested* 
    [eval datasrc=mvdedup(if(&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;!="",mvappend(datasrc, "&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;"),datasrc))]
| eval datasrc=mvfilter(!match(datasrc, "usedData"))
| eval usedData = mvappend(used_index, if(!isnull(resolved_nested_eventtype),resolved_nested_eventtype, resolved_eventtype), if(!isnull(resolved_nested_macro),resolved_nested_macro, resolved_macro))
| eval usedData = mvdedup(usedData)
| table app user action info search_id usedData datasrc
| mvexpand usedData
| eval usedData=replace(usedData, "\)","")
| where !like(usedData, "`%`") AND !isnull(usedData)
| rex field=usedData "index\=\s*\"?(?&amp;lt;usedData&amp;gt;[^\s\"]+)\"?"
| eval usedData=replace(usedData, "\"","")
| eval usedData=replace(usedData,"'","")
| stats count by usedData
    ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The search first gets the indexes via | rest with its eventcount and retentiontime.&lt;BR /&gt;Then audittrail data gets appended and used Indexes, Macros and Eventtypes gets extracted from the searchstring and resolved (since some apps uses nested eventtypes/macros in my environment they get resolved twice). Still needs some sanitizing of the extracted used-indexes.&lt;BR /&gt;&lt;BR /&gt;that gives me a table like this (limited the table to splunkinternal indexes as example)&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%"&gt;title&lt;/TD&gt;&lt;TD width="25%"&gt;totalEventCount&lt;/TD&gt;&lt;TD width="25%"&gt;frozenTimePeriodInSecs&lt;/TD&gt;&lt;TD width="12.5%"&gt;count&lt;/TD&gt;&lt;TD width="12.5%"&gt;usedData&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;_audit&lt;/TD&gt;&lt;TD width="25%"&gt;771404957&lt;/TD&gt;&lt;TD width="25%"&gt;188697600&lt;/TD&gt;&lt;TD width="12.5%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;_configtracker&lt;/TD&gt;&lt;TD width="25%"&gt;717&lt;/TD&gt;&lt;TD width="25%"&gt;2592000&lt;/TD&gt;&lt;TD width="12.5%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;_dsappevent&lt;/TD&gt;&lt;TD width="25%"&gt;240&lt;/TD&gt;&lt;TD width="25%"&gt;5184000&lt;/TD&gt;&lt;TD width="12.5%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;_dsclient&lt;/TD&gt;&lt;TD width="25%"&gt;232&lt;/TD&gt;&lt;TD width="25%"&gt;5184000&lt;/TD&gt;&lt;TD width="12.5%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;_dsphonehome&lt;/TD&gt;&lt;TD width="25%"&gt;843820&lt;/TD&gt;&lt;TD width="25%"&gt;604800&lt;/TD&gt;&lt;TD width="12.5%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;_internal&lt;/TD&gt;&lt;TD width="25%"&gt;7039169453&lt;/TD&gt;&lt;TD width="25%"&gt;15552000&lt;/TD&gt;&lt;TD width="12.5%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;_introspection&lt;/TD&gt;&lt;TD width="25%"&gt;39100728&lt;/TD&gt;&lt;TD width="25%"&gt;1209600&lt;/TD&gt;&lt;TD width="12.5%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;_telemetry&lt;/TD&gt;&lt;TD width="25%"&gt;55990&lt;/TD&gt;&lt;TD width="25%"&gt;63072000&lt;/TD&gt;&lt;TD width="12.5%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;_thefishbucket&lt;/TD&gt;&lt;TD width="25%"&gt;0&lt;/TD&gt;&lt;TD width="25%"&gt;2419200&lt;/TD&gt;&lt;TD width="12.5%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%"&gt;22309&lt;/TD&gt;&lt;TD width="12.5%"&gt;_*&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%"&gt;1039&lt;/TD&gt;&lt;TD width="12.5%"&gt;_audit&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%"&gt;2&lt;/TD&gt;&lt;TD width="12.5%"&gt;_configtracker&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%"&gt;1340&lt;/TD&gt;&lt;TD width="12.5%"&gt;_dsappevent&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%"&gt;1017&lt;/TD&gt;&lt;TD width="12.5%"&gt;_dsclient&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%"&gt;1&lt;/TD&gt;&lt;TD width="12.5%"&gt;_dsclient]&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%"&gt;709&lt;/TD&gt;&lt;TD width="12.5%"&gt;_dsphonehome&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%"&gt;2089&lt;/TD&gt;&lt;TD width="12.5%"&gt;_internal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%"&gt;117&lt;/TD&gt;&lt;TD width="12.5%"&gt;_introspection&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%"&gt;2&lt;/TD&gt;&lt;TD width="12.5%"&gt;_metrics&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%"&gt;2&lt;/TD&gt;&lt;TD width="12.5%"&gt;_metrics_rollup&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%"&gt;2&lt;/TD&gt;&lt;TD width="12.5%"&gt;_telemetry&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%"&gt;2&lt;/TD&gt;&lt;TD width="12.5%"&gt;_thefishbucket&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;But i didnt managed to merge the rows together so that i have&amp;nbsp;count=1039 for _audit plus the&amp;nbsp;22309 from searches that uses all internal indexes&amp;nbsp; in one row for each index.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2024 14:01:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-usage-of-Indexes/m-p/706144#M238996</guid>
      <dc:creator>TheEggi98</dc:creator>
      <dc:date>2024-12-06T14:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Search usage of Indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-usage-of-Indexes/m-p/706293#M239030</link>
      <description>&lt;P&gt;You can do this at the end&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval title=coalesce(title, usedData)
| fields - usedData
| stats values(*) as * by title&lt;/LI-CODE&gt;&lt;P&gt;Note that you seem to pull in a bunch of macros that do not contain any index searches&lt;/P&gt;</description>
      <pubDate>Sun, 08 Dec 2024 23:13:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-usage-of-Indexes/m-p/706293#M239030</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-12-08T23:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Search usage of Indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-usage-of-Indexes/m-p/706303#M239036</link>
      <description>&lt;P&gt;Sorry i probably didnt expressed myself well.&lt;BR /&gt;&lt;BR /&gt;i want that wildcards gets taken into account.&lt;BR /&gt;&lt;BR /&gt;So based from the table i posted as example i would want results like this&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%" height="24px"&gt;title&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;totalEventCount&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;frozenTimePeriodInSecs&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;NumOfSearches&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="24px"&gt;_audit&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;&lt;SPAN&gt;771404957&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;&lt;SPAN&gt;188697600&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;&lt;SPAN&gt;23348&amp;nbsp; &lt;EM&gt;(_audit + _*)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="24px"&gt;&lt;SPAN&gt;_configtracker&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;&lt;SPAN&gt;717&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;&lt;SPAN&gt;2592000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;&lt;SPAN&gt;22311 &lt;EM&gt;(_configtracker + _*)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="24px"&gt;_internal&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;&lt;SPAN&gt;7039169453&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;&lt;SPAN&gt;15552000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;24098 &lt;EM&gt;(_internal + _*)&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 09 Dec 2024 06:31:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-usage-of-Indexes/m-p/706303#M239036</guid>
      <dc:creator>TheEggi98</dc:creator>
      <dc:date>2024-12-09T06:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Search usage of Indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-usage-of-Indexes/m-p/706313#M239040</link>
      <description>&lt;P&gt;You can't replace docs and management with tools.&lt;/P&gt;&lt;PRE&gt;[ | makeresults annotate=f&lt;BR /&gt;| eval t1="ind", t2="ex", t3=t1.t2 &lt;BR /&gt;| eval {t3}="_internal" &lt;BR /&gt;| table *&lt;BR /&gt;| fields - t1 t2 t3 _time ] &lt;BR /&gt;| stats count by index&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 09:42:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-usage-of-Indexes/m-p/706313#M239040</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-12-09T09:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Search usage of Indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-usage-of-Indexes/m-p/706345#M239045</link>
      <description>&lt;P&gt;What do you mean with that?&lt;BR /&gt;i didnt meant to ask my question in a way that i would want to replace docs and management with tools.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 14:15:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-usage-of-Indexes/m-p/706345#M239045</guid>
      <dc:creator>TheEggi98</dc:creator>
      <dc:date>2024-12-09T14:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Search usage of Indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-usage-of-Indexes/m-p/706346#M239046</link>
      <description>&lt;P&gt;That was just a friendly reminder that while "tools" like yours can find some typical cases there might be a lot of them which you might miss with them. As long as you are aware of it and you're using it only as means of a quick help, that's fine and dandy. But there are often questions around here "how to find all XXX defined/used by ...". For which the usual answer is - there is no 100% sure way to do so.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 14:24:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-usage-of-Indexes/m-p/706346#M239046</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-12-09T14:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Search usage of Indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-usage-of-Indexes/m-p/706430#M239055</link>
      <description>&lt;P&gt;You can generally get there with SPL, e.g. here's a bit of a hack, which has a stab at it based on your data example&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults format=csv data="title,totalEventCount,frozenTimePeriodInSecs,count,usedData
_audit,771404957,188697600, , 
_configtracker,717,2592000, , 
_dsappevent,240,5184000, , 
_dsclient,232,5184000, , 
_dsphonehome,843820,604800, , 
_internal,7039169453,15552000, , 
_introspection,39100728,1209600, , 
_telemetry,55990,63072000, , 
_thefishbucket,0,2419200, , 
 , , ,22309,_*
 , , ,1039,_audit
 , , ,2,_configtracker
 , , ,1340,_dsappevent
 , , ,1017,_dsclient
 , , ,1,_dsclient]
 , , ,709,_dsphonehome
 , , ,2089,_internal
 , , ,117,_introspection
 , , ,2,_metrics
 , , ,2,_metrics_rollup
 , , ,2,_telemetry
 , , ,2,_thefishbucket"
| eval title=coalesce(title, usedData)
| fields - usedData
| stats values(*) as * by title
| eventstats values(eval(if(match(title, "\*"), title."##".title."##".count, null()))) as wildcard_indexes
| eval wildcard_indexes=mvmap(wildcard_indexes, replace(wildcard_indexes, "\*(.*##)?", ".*\1"))
| eval count=count+sum(mvmap(wildcard_indexes, if(match(title, mvindex(split(wildcard_indexes, "##"), 0)) AND title!=mvindex(split(wildcard_indexes, "##"), 1), mvindex(split(wildcard_indexes, "##"), 2), 0)))
| fields - wildcard_indexes&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 09 Dec 2024 23:29:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-usage-of-Indexes/m-p/706430#M239055</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-12-09T23:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Search usage of Indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-usage-of-Indexes/m-p/706451#M239060</link>
      <description>&lt;P&gt;This is the SPL Magic i was missing &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;Now i can have a basic understanding which indexes might be searched less frequently than others&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 08:04:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-usage-of-Indexes/m-p/706451#M239060</guid>
      <dc:creator>TheEggi98</dc:creator>
      <dc:date>2024-12-10T08:04:12Z</dc:date>
    </item>
  </channel>
</rss>

