Hi all,
I have a question about how can I get the id of my extractor to delete them by API Graylog then
I know this mongoDB command :
db.inputs.find ({“extractors.id” : “my_extract_name”})
but when i try to launch this one, i’ve got this error :
MongoDB Enterprise > db.inputs.find ({“extractors.id” : “FGTaction”})
Error: error: {
“ok” : 0,
“errmsg” : “not authorized on graylog to execute command { find: “inputs”, filter: { extractors.id: “FGTaction” }, $db: “graylog” }”,
“code” : 13,
“codeName” : “Unauthorized”
}
I create a user like that :
db.createUser(
{
user: “mongo_admin”,
pwd: “passwd”,
roles: [ { role: “root”, db: “admin” } ]
}
)
If someone else had this problem … Thanks !!