<?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 does this error &amp;quot;('createIndex', domain: '5', code: '10088'): exception: cannot index parallel arrays&amp;quot; causes KVstore to stop working? in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Why-does-this-error-quot-createIndex-domain-5-code-10088/m-p/384257#M3305</link>
    <description>&lt;P&gt;What is happening here is that you are hitting a mongodb limitation, as described here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.mongodb.com/manual/core/index-multikey/#limitations"&gt;https://docs.mongodb.com/manual/core/index-multikey/#limitations&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This happens if more than one to-be-indexed field in the collection is an array. This potentially can happen if you first define a collection without any accelerated fields and then feed the collection with some SPL creating 2 or more multivalue fields like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults&amp;nbsp;
| eval Field1="andy, matteo, john, brian", Field2="greg, daviann, zofnat, devon"&amp;nbsp;
| makemv delim="," Field1&amp;nbsp;
| makemv delim="," Field2&amp;nbsp;
| outputlookup MG_Collection append=t&amp;nbsp;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Once you define the field acceleration within &lt;STRONG&gt;collections.conf&lt;/STRONG&gt; and then restart, you will hit the problem. If instead you define straight away the field acceleration in &lt;STRONG&gt;collections.conf&lt;/STRONG&gt; and you attempt to save 2 or more multivalue fields within that KVstore collection, the search will fail and not store the data.&lt;/P&gt;

&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Aug 2018 15:22:21 GMT</pubDate>
    <dc:creator>mgaraventa_splu</dc:creator>
    <dc:date>2018-08-03T15:22:21Z</dc:date>
    <item>
      <title>Why does this error "('createIndex', domain: '5', code: '10088'): exception: cannot index parallel arrays" causes KVstore to stop working?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Why-does-this-error-quot-createIndex-domain-5-code-10088/m-p/384256#M3304</link>
      <description>&lt;P&gt;Hi all, I’m experiencing an unclear issue with KVstore (Splunk 6.5.6). I’m leveraging field acceleration within KVstore &lt;STRONG&gt;collections.conf&lt;/STRONG&gt; like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[TestCollection]&amp;nbsp;
accelerated_fields.myacceleration_Field1 = {"Field1”: 1}&amp;nbsp;
accelerated_fields.myacceleration_Field2 = {"Field2”: 1}&amp;nbsp;
accelerated_fields.myacceleration_Comp = {"Field1”: 1, "Field2”: 1}&amp;nbsp;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;with this &lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[MG_Collection]&amp;nbsp;
collection = TestCollection&amp;nbsp;
external_type = kvstore&amp;nbsp;
fields_list = Field1,Field2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and suddenly I am receiving these KVstore failures in &lt;STRONG&gt;splunkd.log&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;07-30-2018 17:21:00.993 +0100 ERROR KVStorageProvider - An error occurred during the last operation ('createIndex', domain: '5', code: '10088'): exception: cannot index parallel arrays [Field2] [Field1]&amp;nbsp;
07-30-2018 17:21:02.007 +0100 ERROR KVStorageProvider - An error occurred during the last operation ('createIndex', domain: '5', code: '10088'): exception: cannot index parallel arrays [Field2] [Field1]&amp;nbsp;
07-30-2018 17:21:03.016 +0100 ERROR KVStorageProvider - An error occurred during the last operation ('createIndex', domain: '5', code: '10088'): exception: cannot index parallel arrays [Field2] [Field1]&amp;nbsp;
07-30-2018 17:21:03.017 +0100 ERROR KVStoreConfigurationProvider - Error syncing with KV Store, Initialization failed.&amp;nbsp;
07-30-2018 17:21:03.017 +0100 ERROR KVStoreBulletinBoardManager - KV Store changed status to failed. Failed to sync collection configurations. See splunkd.log for details.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I’m feeding the collection via SPL and I can’t understand why this is happening. The workarounds I have found to temporarily resolve the KVstore issue are:&lt;/P&gt;

&lt;P&gt;A. transfer the SH cluster captain to the KVstore captain node:&amp;nbsp;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk transfer shcluster-captain -mgmt_uri&amp;nbsp;https://kvstorecaptain:8089&amp;nbsp;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;B. perform a resync of the KVstore from the (KVstore/SH) captain:&amp;nbsp;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk resync kvstore
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Could you please help me to understand what is going wrong here?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 15:19:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Why-does-this-error-quot-createIndex-domain-5-code-10088/m-p/384256#M3304</guid>
      <dc:creator>mgaraventa_splu</dc:creator>
      <dc:date>2018-08-03T15:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why does this error "('createIndex', domain: '5', code: '10088'): exception: cannot index parallel arrays" causes KVstore to stop working?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Why-does-this-error-quot-createIndex-domain-5-code-10088/m-p/384257#M3305</link>
      <description>&lt;P&gt;What is happening here is that you are hitting a mongodb limitation, as described here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.mongodb.com/manual/core/index-multikey/#limitations"&gt;https://docs.mongodb.com/manual/core/index-multikey/#limitations&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This happens if more than one to-be-indexed field in the collection is an array. This potentially can happen if you first define a collection without any accelerated fields and then feed the collection with some SPL creating 2 or more multivalue fields like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults&amp;nbsp;
| eval Field1="andy, matteo, john, brian", Field2="greg, daviann, zofnat, devon"&amp;nbsp;
| makemv delim="," Field1&amp;nbsp;
| makemv delim="," Field2&amp;nbsp;
| outputlookup MG_Collection append=t&amp;nbsp;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Once you define the field acceleration within &lt;STRONG&gt;collections.conf&lt;/STRONG&gt; and then restart, you will hit the problem. If instead you define straight away the field acceleration in &lt;STRONG&gt;collections.conf&lt;/STRONG&gt; and you attempt to save 2 or more multivalue fields within that KVstore collection, the search will fail and not store the data.&lt;/P&gt;

&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 15:22:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Why-does-this-error-quot-createIndex-domain-5-code-10088/m-p/384257#M3305</guid>
      <dc:creator>mgaraventa_splu</dc:creator>
      <dc:date>2018-08-03T15:22:21Z</dc:date>
    </item>
  </channel>
</rss>

