<?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: KVStore Troubleshooting in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/KVStore-Troubleshooting/m-p/334505#M2865</link>
    <description>&lt;P&gt;So it appears that using (lowercase d in projId):&lt;/P&gt;

&lt;P&gt;var record = {"projId": projID,"projName": projName};&lt;/P&gt;

&lt;P&gt;also fails.&lt;/P&gt;

&lt;P&gt;Changing back to projID works!&lt;/P&gt;

&lt;P&gt;Is someone going to tell me I wasted my entire morning on this because for some bizarre reason the key name MUST be identical to the variable name being passed and any failures surrounding this will be logged absolutely nowhere?&lt;/P&gt;

&lt;P&gt;What madness is this? I must be doing something wrong here surely...&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jul 2017 10:41:10 GMT</pubDate>
    <dc:creator>samhodgson</dc:creator>
    <dc:date>2017-07-27T10:41:10Z</dc:date>
    <item>
      <title>KVStore Troubleshooting</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/KVStore-Troubleshooting/m-p/334504#M2864</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Seeing some very strange behaviour when writing to the KVStore, the following works:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;            var record = {"projectId": projID,"projName": projName};
            console.log(tokens);
            console.log(keyid);
            console.log(record);
            service.del("storage/collections/data/topas4/")
            service.request(
            "storage/collections/data/topas4/",
            "POST",
            null,
            null,
            JSON.stringify(record),
            {"Content-Type": "application/json"},
            null);
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I change:&lt;/P&gt;

&lt;P&gt;var record = {"projID": projID,"projName": projName};&lt;/P&gt;

&lt;P&gt;to be:&lt;/P&gt;

&lt;P&gt;var record = {"projectId": projID,"projName": projName};&lt;/P&gt;

&lt;P&gt;The write appears to work however an inputlookup shows only the projName field.  If I do an inputlookup | fields projName,projectId the projectId field is blank.&lt;/P&gt;

&lt;P&gt;Started splunk in debug mode and the mongo log doesnt show anything, the splunkd.log shows that it appears to write the correct data:&lt;/P&gt;

&lt;P&gt;07-27-2017 11:01:55.412 +0100 DEBUG CollectionHandler - DISPATCH::DATA method='POST' collection='topas4' key=''&lt;BR /&gt;
07-27-2017 11:01:55.413 +0100 DEBUG AuthenticationManagerSplunk - Getting info for user: admin&lt;BR /&gt;
07-27-2017 11:01:55.413 +0100 DEBUG PropertiesMapConfig - Pattern 'topas4' matches with priority 100&lt;BR /&gt;
07-27-2017 11:01:55.413 +0100 DEBUG KVStorageProvider - Insert data: {"projectId":"262","projName":"Account Management"} -- { "projectId" : "262", "projName" : "Account Management" }&lt;BR /&gt;
07-27-2017 11:01:55.413 +0100 DEBUG MongoClient - Pop new connection with type 8&lt;BR /&gt;
07-27-2017 11:01:55.413 +0100 DEBUG MongoClient - Auto -&amp;gt; ReplicaSet&lt;BR /&gt;
07-27-2017 11:01:55.414 +0100 ERROR mongodlog -  2017-07-27T10:01:55.414Z I NETWORK  [initandlisten] connection accepted from 127.0.0.1:36426 #22 (14 connections now open)&lt;BR /&gt;
07-27-2017 11:01:55.439 +0100 ERROR mongodlog -  2017-07-27T10:01:55.439Z I ACCESS   [conn22] Successfully authenticated as principal __system on local&lt;BR /&gt;
07-27-2017 11:01:55.440 +0100 DEBUG MongoClient - Pushing back connection with type 4&lt;/P&gt;

&lt;P&gt;Makes me think my inputlookup is incorrect however I thought that:&lt;/P&gt;

&lt;P&gt;| inputlookup topas4_lookup &lt;/P&gt;

&lt;P&gt;Would show the entire contents?&lt;/P&gt;

&lt;P&gt;Even if i do:&lt;/P&gt;

&lt;P&gt;| inputlookup topas4_lookup | eval KeyID = _key | fields KeyID,projName,projectId&lt;/P&gt;

&lt;P&gt;I see the key but the the projectId field is still blank.&lt;/P&gt;

&lt;P&gt;Any ideas on what might be causing this or how to further troubleshoot it would do wonders for my sanity.&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;

&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 10:20:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/KVStore-Troubleshooting/m-p/334504#M2864</guid>
      <dc:creator>samhodgson</dc:creator>
      <dc:date>2017-07-27T10:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: KVStore Troubleshooting</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/KVStore-Troubleshooting/m-p/334505#M2865</link>
      <description>&lt;P&gt;So it appears that using (lowercase d in projId):&lt;/P&gt;

&lt;P&gt;var record = {"projId": projID,"projName": projName};&lt;/P&gt;

&lt;P&gt;also fails.&lt;/P&gt;

&lt;P&gt;Changing back to projID works!&lt;/P&gt;

&lt;P&gt;Is someone going to tell me I wasted my entire morning on this because for some bizarre reason the key name MUST be identical to the variable name being passed and any failures surrounding this will be logged absolutely nowhere?&lt;/P&gt;

&lt;P&gt;What madness is this? I must be doing something wrong here surely...&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 10:41:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/KVStore-Troubleshooting/m-p/334505#M2865</guid>
      <dc:creator>samhodgson</dc:creator>
      <dc:date>2017-07-27T10:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: KVStore Troubleshooting</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/KVStore-Troubleshooting/m-p/334506#M2866</link>
      <description>&lt;P&gt;fields_list in transforms.conf dammit! totally my bad...&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 16:04:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/KVStore-Troubleshooting/m-p/334506#M2866</guid>
      <dc:creator>samhodgson</dc:creator>
      <dc:date>2017-07-27T16:04:24Z</dc:date>
    </item>
  </channel>
</rss>

