<?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: querying index in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/querying-index/m-p/684072#M55999</link>
    <description>&lt;P&gt;The field name ("attribute") for index is "index".&lt;/P&gt;</description>
    <pubDate>Fri, 12 Apr 2024 17:51:23 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2024-04-12T17:51:23Z</dc:date>
    <item>
      <title>querying index</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/querying-index/m-p/684067#M55998</link>
      <description>&lt;P&gt;do we have splunk attribute to fetch index&amp;nbsp;&lt;/P&gt;&lt;P&gt;we are passing index in splunk query. with only log file do we have any splunk attribute to fetch index???&lt;/P&gt;&lt;P&gt;index = aaa&lt;/P&gt;&lt;P&gt;index = bbb&lt;/P&gt;&lt;P&gt;like we have for host&lt;/P&gt;&lt;P&gt;index=aaa(source="/var/log/tes1.log" |stats count by host&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 17:30:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/querying-index/m-p/684067#M55998</guid>
      <dc:creator>Jasmine</dc:creator>
      <dc:date>2024-04-12T17:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: querying index</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/querying-index/m-p/684072#M55999</link>
      <description>&lt;P&gt;The field name ("attribute") for index is "index".&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 17:51:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/querying-index/m-p/684072#M55999</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-04-12T17:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: querying index</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/querying-index/m-p/684080#M56001</link>
      <description>&lt;P&gt;i tried below: but it didnt return anything&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(source="/var/ltest/test.log") |table index&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 18:31:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/querying-index/m-p/684080#M56001</guid>
      <dc:creator>Jasmine</dc:creator>
      <dc:date>2024-04-12T18:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: querying index</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/querying-index/m-p/684087#M56004</link>
      <description>&lt;P&gt;Do you get any events when you use this search? (You can also set the time range to be very large, in case the events from the log source are not in the past 24 hours. Also double-check that the source path is correct.)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=* source="/var/ltest/test.log"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 19:24:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/querying-index/m-p/684087#M56004</guid>
      <dc:creator>marnall</dc:creator>
      <dc:date>2024-04-12T19:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: querying index</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/querying-index/m-p/684092#M56005</link>
      <description>&lt;P&gt;Every query should specify an index name before the first pipe.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=aaa source="/var/log/tes1.log" |stats count by index&lt;/LI-CODE&gt;&lt;P&gt;Of course, there must be data in the specified index from the specified source for there to be results.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 19:43:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/querying-index/m-p/684092#M56005</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-04-12T19:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: querying index</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/querying-index/m-p/684116#M56006</link>
      <description>&lt;P&gt;so we cannot load index dynamically from log files, correct?&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2024 04:04:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/querying-index/m-p/684116#M56006</guid>
      <dc:creator>Jasmine</dc:creator>
      <dc:date>2024-04-13T04:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: querying index</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/querying-index/m-p/684134#M56010</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;it depends how your roles have defined in authorizations. There is an attribute&amp;nbsp;srchIndexesDefault,&amp;nbsp;&lt;SPAN&gt;which define what indexes are used when you don’t use index=xyz on your query. Of course you must have access to those indexes. This is defined with an attribute srchIndexesAllowed. Those both are define in authorize.conf.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As already has said, you should always use index=xyz on your queries to use needed/wanted indexes as different roles has different default indexes. &amp;nbsp;IMHO you shouldn’t ever use srchIndexesDefault as it leads people to drop that index=xyz part away from queries.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;r. Ismo&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2024 07:01:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/querying-index/m-p/684134#M56010</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-04-13T07:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: querying index</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/querying-index/m-p/684161#M56016</link>
      <description>&lt;P&gt;No, you cannot get the index name from a log file.&lt;/P&gt;&lt;P&gt;The index is specified when the data is onboarded as part of the inputs.conf settings.&lt;/P&gt;&lt;P&gt;At search time, data is fetched from one or more indexes.&amp;nbsp; Getting the index from a log file would mean going to an index to get a log file to get the name of an index.&amp;nbsp; Doesn't make much sense.&lt;/P&gt;&lt;P&gt;What problem are you trying to solve?&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2024 12:13:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/querying-index/m-p/684161#M56016</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-04-13T12:13:12Z</dc:date>
    </item>
  </channel>
</rss>

