<?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: Why is no data being written to the _internal index for my search-head? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-no-data-being-written-to-the-internal-index-for-my-search/m-p/106335#M183244</link>
    <description>&lt;P&gt;Thanks for the information, this resolved the issue and I see the _internal index is now being forwarded after adding a line to tcpout whitelisting _internal.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jul 2012 21:44:30 GMT</pubDate>
    <dc:creator>jbsplunk</dc:creator>
    <dc:date>2012-07-23T21:44:30Z</dc:date>
    <item>
      <title>Why is no data being written to the _internal index for my search-head?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-no-data-being-written-to-the-internal-index-for-my-search/m-p/106332#M183241</link>
      <description>&lt;P&gt;No logs are being written to my internal index for one of my search-heads. This started because I was looking for entries in splunkd.log, and I could see them for my indexers from the search head, but not for the search head itself. I've queried the &lt;CODE&gt;TailingProcessor:FileStatus&lt;/CODE&gt; endpoint on the search-head's REST API and can see the files are being read, and the inputs stanza clearly lists &lt;CODE&gt;index = _internal&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Why is my search-head not populating any events to the &lt;CODE&gt;_internal&lt;/CODE&gt; index?&lt;/P&gt;

&lt;P&gt;Here is some output from the &lt;A href="http://www.splunk.com/goto/sos"&gt;SoS app&lt;/A&gt;'s Configuration File Viewer.&lt;/P&gt;

&lt;P&gt;inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search     [monitor:///opt/splunk/var/log/splunk]
system     _rcvbuf = 1572864
search     disabled = false
search     followTail = 0
system     host = someserver
search     index = _internal
search     sourcetype = splunkd
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;relevant props entries:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;system     [source::.../var/log/splunk/(license_usage).log(.\d+)?]
system     ANNOTATE_PUNCT = True
system     BREAK_ONLY_BEFORE = 
system     BREAK_ONLY_BEFORE_DATE = True
system     CHARSET = UTF-8
system     DATETIME_CONFIG = /etc/datetime.xml
system     HEADER_MODE = 
system     LEARN_SOURCETYPE = true
system     LINE_BREAKER_LOOKBEHIND = 100
system     MAX_DAYS_AGO = 2000
system     MAX_DAYS_HENCE = 2
system     MAX_DIFF_SECS_AGO = 3600
system     MAX_DIFF_SECS_HENCE = 604800
system     MAX_EVENTS = 256
system     MAX_TIMESTAMP_LOOKAHEAD = 128
system     MUST_BREAK_AFTER = 
system     MUST_NOT_BREAK_AFTER = 
system     MUST_NOT_BREAK_BEFORE = 
system     SEGMENTATION = indexing
system     SEGMENTATION-all = full
system     SEGMENTATION-inner = inner
system     SEGMENTATION-outer = outer
system     SEGMENTATION-raw = none
system     SEGMENTATION-standard = standard
system     SHOULD_LINEMERGE = True
system     TRANSFORMS = 
system     TRUNCATE = 10000
system     maxDist = 100
system     sourcetype = splunkd

search     [splunkd]
system     ANNOTATE_PUNCT = True
system     BREAK_ONLY_BEFORE = 
system     BREAK_ONLY_BEFORE_DATE = True
system     CHARSET = UTF-8
system     DATETIME_CONFIG = /etc/datetime.xml
search     EXTRACT-fields = (?i)^(?:[^ ]* ){2}(?:[+\-]\d+ )?(?P&amp;lt;log_level&amp;gt;[^ ]*)\s+(?P&amp;lt;component&amp;gt;[^ ]+) - (?P&amp;lt;message&amp;gt;.+)
system     HEADER_MODE = 
system     LEARN_SOURCETYPE = true
system     LINE_BREAKER_LOOKBEHIND = 100
system     MAX_DAYS_AGO = 2000
system     MAX_DAYS_HENCE = 2
system     MAX_DIFF_SECS_AGO = 3600
system     MAX_DIFF_SECS_HENCE = 604800
system     MAX_EVENTS = 256
system     MAX_TIMESTAMP_LOOKAHEAD = 40
system     MUST_BREAK_AFTER = 
system     MUST_NOT_BREAK_AFTER = 
system     MUST_NOT_BREAK_BEFORE = 
system     SEGMENTATION = indexing
system     SEGMENTATION-all = full
system     SEGMENTATION-inner = inner
system     SEGMENTATION-outer = outer
system     SEGMENTATION-raw = none
system     SEGMENTATION-standard = standard
system     SHOULD_LINEMERGE = True
system     TRANSFORMS = 
system     TRUNCATE = 10000
system     maxDist = 100
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As you can see, no nullQueue transforms have been used.&lt;/P&gt;

&lt;P&gt;outputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;OutputApp [tcpout:indexers]
OutputApp autoLB = true
OutputApp disabled = false
OutputApp indexAndForward = false
OutputApp server = server1:9997,server2:9997,server3:9997,server4:9997,server5:9997

OutputApp  [tcpout]
system     autoLB = true
system     autoLBFrequency = 30
system     blockOnCloning = true
system     compressed = false
system     connectionTimeout = 20
OutputApp  defaultGroup = indexers
system     disabled = false
system     dropClonedEventsOnQueueFull = 5
system     dropEventsOnQueueFull = -1
system     forwardedindex.0.whitelist = .*
system     forwardedindex.1.blacklist = _.*
system     forwardedindex.2.whitelist = _audit
system     forwardedindex.filter.disable = false
system     heartbeatFrequency = 30
system     indexAndForward = false
system     maxConnectionsPerIndexer = 2
system     maxFailuresPerInterval = 2
system     maxQueueSize = 500KB
system     readTimeout = 300
system     secsInFailureInterval = 1
system     sendCookedData = true
system     useACK = false
system     writeTimeout = 300
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Has anyone seen this before? How can I correct this behavior? &lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2012 21:03:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-no-data-being-written-to-the-internal-index-for-my-search/m-p/106332#M183241</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2012-07-23T21:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why is no data being written to the _internal index for my search-head?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-no-data-being-written-to-the-internal-index-for-my-search/m-p/106333#M183242</link>
      <description>&lt;P&gt;By default, data from internal indexes will not be forwarded. In 4.1 and later, you can control this by setting the parameter &lt;CODE&gt;forwardedindex.filter.disable&lt;/CODE&gt; to &lt;CODE&gt;true&lt;/CODE&gt;. If you only want to enable forwarding for specific internal indexes, you can also use the blacklists and whitelists directives available in outputs.conf instead.&lt;/P&gt;

&lt;P&gt;More information available here:&lt;BR /&gt;
&lt;A href="http://splunk-base.splunk.com/answers/2737/how-can-i-forward-the-internal-splunk-logs-of-a-splunk-deployment-to-another-splunk"&gt;http://splunk-base.splunk.com/answers/2737/how-can-i-forward-the-internal-splunk-logs-of-a-splunk-deployment-to-another-splunk&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Outputsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Outputsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;EDIT: On closer inspection, I see that you've already applied the blacklists and whitelists, so I was a bit too hasty with my response. The only advice I could give you is to try disabling the filter completely and see what you get, then work your way from there.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2012 21:22:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-no-data-being-written-to-the-internal-index-for-my-search/m-p/106333#M183242</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-07-23T21:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why is no data being written to the _internal index for my search-head?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-no-data-being-written-to-the-internal-index-for-my-search/m-p/106334#M183243</link>
      <description>&lt;P&gt;Looking at your outputs.conf, you have configured this search-head to forward any events it gathers back to your indexers:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;OutputApp [tcpout:indexers]
OutputApp autoLB = true
OutputApp disabled = false
OutputApp indexAndForward = false
OutputApp server = server1:9997,server2:9997,server3:9997,server4:9997,server5:9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is a very good practice in general, particularly if the search-head is doing a lot of summarization jobs, as it will spread the resulting events across your indexers and you will leverage distributed search even when searching against your summary indexes.&lt;/P&gt;

&lt;P&gt;The reason why you cannot find any events usually destined to &lt;CODE&gt;_internal&lt;/CODE&gt; for this search-head has to do with the &lt;CODE&gt;forwardedindex&lt;/CODE&gt; default settings in &lt;CODE&gt;$SPLUNK_HOME/etc/system/default/outputs.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;OutputApp  [tcpout]
(...)
system     forwardedindex.0.whitelist = .*
system     forwardedindex.1.blacklist = _.*
system     forwardedindex.2.whitelist = _audit
system     forwardedindex.filter.disable = false
(...)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Outputsconf"&gt;outputs.conf.spec&lt;/A&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#----Index Filter Settings.
forwardedindex.&amp;lt;n&amp;gt;.whitelist = &amp;lt;regex&amp;gt;
forwardedindex.&amp;lt;n&amp;gt;.blacklist = &amp;lt;regex&amp;gt;
* These filters determine which events get forwarded, based on the indexes they belong to.
* This is an ordered list of whitelists and blacklists, which together decide if events should be forwarded to an index.
* The order is determined by &amp;lt;n&amp;gt;. &amp;lt;n&amp;gt; must start at 0 and continue with positive integers, in sequence. There cannot be any gaps in the sequence. (For example, forwardedindex.0.whitelist, forwardedindex.1.blacklist, forwardedindex.2.whitelist, ...). 
* The filters can start from either whitelist or blacklist. They are tested from forwardedindex.0 to forwardedindex.&amp;lt;max&amp;gt;.
* You should not normally need to change these filters from their default settings in $SPLUNK_HOME/system/default/outputs.conf.

forwardedindex.filter.disable = [true|false]
* If true, disables index filtering. Events for all indexes are then forwarded.
* Defaults to false.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This explanation is actually somewhat incomplete (don't worry, we're getting the spec file fixed in a future release): When events destined to a given index are filtered away from forwarding by a &lt;CODE&gt;forwardedindex&lt;/CODE&gt; directive &lt;STRONG&gt;they are neither forwarded nor indexed!&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;This is why you cannot find any &lt;CODE&gt;_internal&lt;/CODE&gt; events recorded by your search-head anywhere.&lt;/P&gt;

&lt;P&gt;To correct this, add the following configuration to $SPLUNK_HOME/etc/system/local/outputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
forwardedindex.3.whitelist = _internal
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note that we are considering to change this default behavior in the future and whitelist &lt;CODE&gt;_internal&lt;/CODE&gt; for forwarding just like &lt;CODE&gt;_audit&lt;/CODE&gt; is today.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2012 21:40:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-no-data-being-written-to-the-internal-index-for-my-search/m-p/106334#M183243</guid>
      <dc:creator>hexx</dc:creator>
      <dc:date>2012-07-23T21:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why is no data being written to the _internal index for my search-head?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-no-data-being-written-to-the-internal-index-for-my-search/m-p/106335#M183244</link>
      <description>&lt;P&gt;Thanks for the information, this resolved the issue and I see the _internal index is now being forwarded after adding a line to tcpout whitelisting _internal.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2012 21:44:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-no-data-being-written-to-the-internal-index-for-my-search/m-p/106335#M183244</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2012-07-23T21:44:30Z</dc:date>
    </item>
  </channel>
</rss>

