Hi there,
I would like to initially bulk fill my kvstore with around 3.000.000 entries.
AFAIK the REST API allows to add one entry at a time. Not taking the overhead into account, this takes way too long.
Therefore, I need a direct connection to the kvstore (mongo db 2.6.7-splunk). My first task then would be: "getting a list of all database objects (show dbs)".
I tried using mongo shell 3.0.3. The connection could be established (to the db admin). But I am not allowed to do:
show db
"errmsg" : "not authorized on admin to execute command { listDatabases: 1.0 }",
"code" : 13
But I am connected not using any pem/key file.
With node.js and the package mongodb, I use these options, since I found them in mongod.log:
options: { net: { port: 8191, ssl: { PEMKeyFile: "xxx\etc\auth\server.pem", PEMKeyPassword: "<password>", mode: "preferSSL" } }, replication: { oplogSizeMB: 1000 }, security: { keyFile: "xxx\var\lib\splunk/kvstore\mongo\splunk.key" }, setParameter: { enableLocalhostAuthBypass: "0" }, storage: { dbPath: "xxx\var\lib\splunk/kvstore\mongo", smallFiles: true }, systemLog: { timeStampFormat: "iso8601-utc" } }
But same with this approach:
AssertionError: null == {"name":"MongoError","message":"not authorized on admin to execute command { listDatabases: 1 }","ok":0,"errmsg":"not authorized
My questions so far:
1 How can I bulk fill the kvstore?
2 How can access the kvstore directly?
3 (How) can I use my own mongodb as kvstore?
Thanks - Björn
... View more