<?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: Please route me i am at INDEX deadend. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Please-route-me-i-am-at-INDEX-deadend/m-p/404535#M95117</link>
    <description>&lt;P&gt;You get a value for the path but it will not resolve any volume definitions, nor &lt;CODE&gt;$SPLUNK_DB&lt;/CODE&gt;, which is what my code does.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2019 16:59:11 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-06-11T16:59:11Z</dc:date>
    <item>
      <title>Please route me i am at INDEX deadend.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Please-route-me-i-am-at-INDEX-deadend/m-p/404527#M95109</link>
      <description>&lt;P&gt;I appreciate your time and effort.  below are questions &lt;/P&gt;

&lt;P&gt;1)  I want to find out where is the index.conf for my index XYZ (read bunch of docs not sure where to check in SH or Deployment server or something else)&lt;/P&gt;

&lt;P&gt;2)  with this search i got bunch of index (search “|tstats count where source=/opt/splunk/syslog-ng/* by index | table index”) where is  index.conf configs for those indexes? &lt;/P&gt;

&lt;P&gt;3)  And where to check those indexes over 50% of max size? &lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 22:01:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Please-route-me-i-am-at-INDEX-deadend/m-p/404527#M95109</guid>
      <dc:creator>Rocky31</dc:creator>
      <dc:date>2019-06-04T22:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Please route me i am at INDEX deadend.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Please-route-me-i-am-at-INDEX-deadend/m-p/404528#M95110</link>
      <description>&lt;P&gt;Hi Rocky31,&lt;/P&gt;

&lt;P&gt;1 &amp;amp; 2 can be &lt;EM&gt;resolved&lt;/EM&gt; by using this command on an indexer instances:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/bin/splunk btool indexes list --debug 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will show you the output of all &lt;CODE&gt;indexes.conf&lt;/CODE&gt; merged and their location. For just one index run it like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/bin/splunk btool indexes list indexNameHere --debug 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regarding 3. if you have the monitoring console configured &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/DMC/DMCoverview"&gt;https://docs.splunk.com/Documentation/Splunk/latest/DMC/DMCoverview&lt;/A&gt; you will get a lot of pre-built dashboards around index sizing, age and more.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 23:13:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Please-route-me-i-am-at-INDEX-deadend/m-p/404528#M95110</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2019-06-04T23:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Please route me i am at INDEX deadend.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Please-route-me-i-am-at-INDEX-deadend/m-p/404529#M95111</link>
      <description>&lt;P&gt;thanks for your answer, can you also tell me how to check each index size occupied in indexers in percentages&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 15:11:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Please-route-me-i-am-at-INDEX-deadend/m-p/404529#M95111</guid>
      <dc:creator>Rocky31</dc:creator>
      <dc:date>2019-06-05T15:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Please route me i am at INDEX deadend.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Please-route-me-i-am-at-INDEX-deadend/m-p/404530#M95112</link>
      <description>&lt;P&gt;Interestingly enough, I just wrote this code last week:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#! /bin/bash

SPLUNK_DB=$(/opt/splunk/bin/splunk envvars | sed 's/.*SPLUNK_DB=\(\S\+\).*$/\1/')
if [[ $(echo ${SPLUNK_DB} | awk -F '/' '{print NF}') -eq 0 ]]; then
   # No '/' characters so splunk is not running here
   TEST_MODE="YES"
   echo "TEST MODE INITIATED"
   SPLUNK_DB="/opt/splunk/var/lib/splunk"
   echo "SPLUNK_DB=${SPLUNK_DB}"
   LOGFILE="/dev/null"
   echo "LOGFILE=${LOGFILE}"
   indexes_file=./indexes.conf
   # assume that the index detail file already exists locally
else # Splunk is running here; assume that it really is an indexer
   LOGFILE="/var/log/$0.$(date +%Y%m%d_%H%M%S)"
   indexes_file=/tmp/indexes.conf
   # generate the index detail file
   /opt/splunk/bin/splunk btool indexes list | egrep '^\[|^homePath\s*=|^path\s*=' &amp;gt; ${indexes_file}
fi

while read -r line; do
   if [ "$(echo ${line} | cut -c 1)" != '[' ] || [ "$(echo ${line} | cut -c1-8)" = '[volume:' ] || [ "$(echo ${line} | cut -c1-17)" = '[provider-family:' ]; then
      continue
   fi
   # capture next index value
   index=$(echo ${line} | awk '{print substr($0, 2, length($0) - 2)}')
   index_lower=$(echo ${index} | tr "[:upper:]" "[:lower:]")
   echo "   index=${index}, index_lower=${index_lower}"
   if [[ $index == "default" ]] || [[ $index == "splunklogger" ]] || [[ $index == "history" ]]; then
      echo "Skipping this one..."
      continue # skip this one
   fi
   # Identifying warm buckets path
   home_path=$(grep -A1 -w "^\[${index}" ${indexes_file} | grep -E "^homePath\s*=" | awk -F '=' '{print $2}'| xargs echo)
   echo "home_path=${home_path}"
   if [[ $home_path == volume:* ]]; then # dereference volume
      warm_volume_name=${home_path%%/*}
      # Identifying Warm Volume Path
      warm_volume_path=$(grep -A1 "^\[${warm_volume_name}" ${indexes_file} | grep path | awk -F '=' '{print $2 }' | xargs echo)
      echo "warm_volume_path=${warm_volume_path}"
   elif [[ $home_path == \$SPLUNK_DB* ]]; then # dereference "$SPLUNK_DB"
      warm_volume_path=${SPLUNK_DB}
   else # just a normal path that needs no modification at all
      warm_volume_path=''
   fi
   home_path=${home_path#*/}
   comp_path=$(echo ${warm_volume_path}/${home_path} | tr "[:upper:]" "[:lower:]")
   # replace "$_index_name" if present
   comp_path=$(echo ${comp_path} | sed "s%/\$_index_name/%/${index_lower}/%")
   echo "comp_path=${comp_path}"

   if [[ ${TEST_MODE} == "YES" ]]; then
      # Not running on an actual indexer (splunk is not running here)
      continue
   fi

   # Do other stuff here
done &amp;lt; ${indexes_file}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Jun 2019 16:26:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Please-route-me-i-am-at-INDEX-deadend/m-p/404530#M95112</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-06-05T16:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Please route me i am at INDEX deadend.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Please-route-me-i-am-at-INDEX-deadend/m-p/404531#M95113</link>
      <description>&lt;P&gt;Hi Splunk superstar,&lt;BR /&gt;
this is really a out of box thinking, i need to work on it to understand further. good one.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 18:49:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Please-route-me-i-am-at-INDEX-deadend/m-p/404531#M95113</guid>
      <dc:creator>Rocky31</dc:creator>
      <dc:date>2019-06-06T18:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Please route me i am at INDEX deadend.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Please-route-me-i-am-at-INDEX-deadend/m-p/404532#M95114</link>
      <description>&lt;P&gt;This answer show which configuration files contain the definitions for every index, but it does not fully resolve the path, which is what I believe the OP desires.  Please see my answer for how to do that.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jun 2019 21:24:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Please-route-me-i-am-at-INDEX-deadend/m-p/404532#M95114</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-06-09T21:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Please route me i am at INDEX deadend.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Please-route-me-i-am-at-INDEX-deadend/m-p/404533#M95115</link>
      <description>&lt;P&gt;You must be using a different version of &lt;CODE&gt;btool&lt;/CODE&gt; &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;BR /&gt;
I get a nice output of the path when using the posted command &lt;CODE&gt;$SPLUNK_HOME/bin/splunk btool indexes list --debug&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jun 2019 22:01:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Please-route-me-i-am-at-INDEX-deadend/m-p/404533#M95115</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2019-06-09T22:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Please route me i am at INDEX deadend.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Please-route-me-i-am-at-INDEX-deadend/m-p/404534#M95116</link>
      <description>&lt;P&gt;Sure, thanks&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 16:29:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Please-route-me-i-am-at-INDEX-deadend/m-p/404534#M95116</guid>
      <dc:creator>Rocky31</dc:creator>
      <dc:date>2019-06-11T16:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Please route me i am at INDEX deadend.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Please-route-me-i-am-at-INDEX-deadend/m-p/404535#M95117</link>
      <description>&lt;P&gt;You get a value for the path but it will not resolve any volume definitions, nor &lt;CODE&gt;$SPLUNK_DB&lt;/CODE&gt;, which is what my code does.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 16:59:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Please-route-me-i-am-at-INDEX-deadend/m-p/404535#M95117</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-06-11T16:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Please route me i am at INDEX deadend.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Please-route-me-i-am-at-INDEX-deadend/m-p/404536#M95118</link>
      <description>&lt;P&gt;Be sure to come back after you test and click &lt;CODE&gt;Accept&lt;/CODE&gt; to close the question (or to point out bugs/fixes)!&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2019 18:29:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Please-route-me-i-am-at-INDEX-deadend/m-p/404536#M95118</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-14T18:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Please route me i am at INDEX deadend.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Please-route-me-i-am-at-INDEX-deadend/m-p/404537#M95119</link>
      <description>&lt;P&gt;So how did it work out @Rocky31?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 01:44:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Please-route-me-i-am-at-INDEX-deadend/m-p/404537#M95119</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-26T01:44:00Z</dc:date>
    </item>
  </channel>
</rss>

