<?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: Need to find where index was used in lookups, reports, alerts and dashboards. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-to-find-where-index-was-used-in-lookups-reports-alerts-and/m-p/693299#M235897</link>
    <description>&lt;P&gt;1. If you really want to brute-force your way through configs, don't just do grep -R over everything because you'll be doing - for example - searching through a whole lot of java code if you have DBConnect installed. It's enough to do&lt;/P&gt;&lt;PRE&gt;find $SPLUNK_HOME/etc -type f -name \*.conf | xargs grep "index=whatever"&lt;/PRE&gt;&lt;P&gt;2. It only finds those cases where there is an explicit index=something condition in the search. I know it's relatively uncommon, but index can be specified in another way - for example with a use of a macro. The index can also be specified with a wildcard. There are more fancy ways of dynamically specifying index to search. You won't find them this way.&lt;/P&gt;</description>
    <pubDate>Sun, 14 Jul 2024 18:25:00 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2024-07-14T18:25:00Z</dc:date>
    <item>
      <title>Need to find where index was used in lookups, reports, alerts and dashboards.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-find-where-index-was-used-in-lookups-reports-alerts-and/m-p/693210#M235888</link>
      <description>&lt;P&gt;The data coming into one of our indexers recently changed. Now the format is different, and the fields are different. The values are basically the same. I need to be able to find where this index and data was being used in our environment's lookups, reports, alerts and dashboards. Any idea how this can be accomplished?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 18:09:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-find-where-index-was-used-in-lookups-reports-alerts-and/m-p/693210#M235888</guid>
      <dc:creator>bwheelerice</dc:creator>
      <dc:date>2024-07-12T18:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need to find where index was used in lookups, reports, alerts and dashboards.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-find-where-index-was-used-in-lookups-reports-alerts-and/m-p/693215#M235889</link>
      <description>&lt;P&gt;A short answer - there is no way to reliably find all its uses.&lt;/P&gt;&lt;P&gt;A longer answer - there are so many ways to "use" an index that while you can try to "grep" some of them (mostly by calling proper REST endpoints and filtering the output properly), you can never tell whether someone didn't use some macro that expands to "index=whatever" or a subsearch resulting in such condition when evaluated.&lt;/P&gt;&lt;P&gt;So you can try but they can hide &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;BTW, how would you want to "use index in a lookup"?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 19:33:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-find-where-index-was-used-in-lookups-reports-alerts-and/m-p/693215#M235889</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-07-12T19:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need to find where index was used in lookups, reports, alerts and dashboards.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-find-where-index-was-used-in-lookups-reports-alerts-and/m-p/693220#M235890</link>
      <description>&lt;P&gt;This is where the good documentation of the Splunk project will come in handy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;suggested, this task will need the long route and manual work may give the headache.&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 20:36:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-find-where-index-was-used-in-lookups-reports-alerts-and/m-p/693220#M235890</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2024-07-12T20:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need to find where index was used in lookups, reports, alerts and dashboards.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-find-where-index-was-used-in-lookups-reports-alerts-and/m-p/693221#M235891</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;is correct in that this is a Hard Problem.&amp;nbsp; For further discussion on it, along with ways to (partially) solve it, see the .conf24 talk I co-produced at &lt;A href="https://github.com/TheWoodRanger/presentation-conf_24_audittrail_native_telemetry" target="_blank"&gt;GitHub - TheWoodRanger/presentation-conf_24_audittrail_native_telemetry&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 20:49:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-find-where-index-was-used-in-lookups-reports-alerts-and/m-p/693221#M235891</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-07-12T20:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need to find where index was used in lookups, reports, alerts and dashboards.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-find-where-index-was-used-in-lookups-reports-alerts-and/m-p/693222#M235892</link>
      <description>&lt;P&gt;My main goal is to go to all locations and make sure that the SPL that is being used along with index=&amp;lt;my_index&amp;gt; is actually doing what it should because the data changed from csv format to json. And the field value pairs changed their naming convention. All because our environment chose to change the application it uses to gather said data. I have been tasked with this and I was not even the person who created all these searches/reports/alerts etc... So no tribal knowledge which led me to this forum.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 21:09:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-find-where-index-was-used-in-lookups-reports-alerts-and/m-p/693222#M235892</guid>
      <dc:creator>bwheelerice</dc:creator>
      <dc:date>2024-07-12T21:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need to find where index was used in lookups, reports, alerts and dashboards.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-find-where-index-was-used-in-lookups-reports-alerts-and/m-p/693250#M235893</link>
      <description>&lt;P&gt;Ok. So you _probably_ should handle it completely differently. It has nothing to do with the index itself. Data format has changed which means you should use another sourcetype. In that new sourcetype you should provide a compatibility layer for the old one - creating aliases, lookups and calculated fields to match old sourcetype's fields. It would be even better if your sourcetypes were CIM-compatible and you were searching from datamodels but I don't suppose that's the case.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2024 05:40:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-find-where-index-was-used-in-lookups-reports-alerts-and/m-p/693250#M235893</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-07-13T05:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need to find where index was used in lookups, reports, alerts and dashboards.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-find-where-index-was-used-in-lookups-reports-alerts-and/m-p/693298#M235896</link>
      <description>&lt;DIV class=""&gt;&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/269917"&gt;@bwheelerice&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;recently I did similar exercise&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;if you have backend access&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;on Searchead CLI&amp;nbsp; navigate to &lt;STRONG&gt;$PLUNK_HOME/etc&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;run command&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;grep -Ril "index=&amp;lt;indexname&amp;gt;"&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;it will list wherever&amp;nbsp;index=&amp;lt;indexname&amp;gt; present with location&amp;nbsp;&lt;BR /&gt;its covers etc/apps/ and etc/users&lt;BR /&gt;&lt;BR /&gt;However, one problem is that you need to do it&amp;nbsp; based on your needs.&lt;BR /&gt;&lt;BR /&gt;At least it worked for me to find index names and replace them wherever needed.&lt;BR /&gt;&lt;BR /&gt;searching of index name depends on component&amp;nbsp;&lt;BR /&gt;for ex: on deployment server you need to run in location&amp;nbsp;&amp;nbsp;$PLUNK_HOME/etc/deployment-apps&amp;nbsp;&lt;/P&gt;&lt;P&gt;on cluster manager&amp;nbsp;$PLUNK_HOME/etc/manager-apps or master-apps&lt;BR /&gt;&lt;BR /&gt;it works for any keyword that you want to lookfor&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 14 Jul 2024 18:11:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-find-where-index-was-used-in-lookups-reports-alerts-and/m-p/693298#M235896</guid>
      <dc:creator>SanjayReddy</dc:creator>
      <dc:date>2024-07-14T18:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need to find where index was used in lookups, reports, alerts and dashboards.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-find-where-index-was-used-in-lookups-reports-alerts-and/m-p/693299#M235897</link>
      <description>&lt;P&gt;1. If you really want to brute-force your way through configs, don't just do grep -R over everything because you'll be doing - for example - searching through a whole lot of java code if you have DBConnect installed. It's enough to do&lt;/P&gt;&lt;PRE&gt;find $SPLUNK_HOME/etc -type f -name \*.conf | xargs grep "index=whatever"&lt;/PRE&gt;&lt;P&gt;2. It only finds those cases where there is an explicit index=something condition in the search. I know it's relatively uncommon, but index can be specified in another way - for example with a use of a macro. The index can also be specified with a wildcard. There are more fancy ways of dynamically specifying index to search. You won't find them this way.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2024 18:25:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-find-where-index-was-used-in-lookups-reports-alerts-and/m-p/693299#M235897</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-07-14T18:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need to find where index was used in lookups, reports, alerts and dashboards.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-find-where-index-was-used-in-lookups-reports-alerts-and/m-p/698011#M237087</link>
      <description>&lt;P class="lia-align-left"&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp; for information.&lt;BR /&gt;&lt;BR /&gt;I will try use options you menioned as well&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 18:36:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-find-where-index-was-used-in-lookups-reports-alerts-and/m-p/698011#M237087</guid>
      <dc:creator>SanjayReddy</dc:creator>
      <dc:date>2024-09-02T18:36:12Z</dc:date>
    </item>
  </channel>
</rss>

