Getting Data In

Cannot delete from command line

jgauthier
Contributor

I recently upgraded from 4.2 to 4.3. Since then, I cannot delete from a remote command line.

sourcetype="dontcare" | delete

Returns:
Login failed
Unauthorized

I am using a shell script to remotely connect to a remote windows splunk server.
This worked with 4.2, and I am passing the credentials on the command line.

Since 4.3, it does not work.

Tags (3)
0 Karma

sowings
Splunk Employee
Splunk Employee

If you've verified that the username and password are correct (Login failed?!), that user role may not have the "delete_by_keyword" capability. By default, this is assigned to the "can_delete" role, but not the "admin" role.

0 Karma

jgauthier
Contributor

Yes, I checked that as well. As stated, this was fine in 4.2, and I did not change the user account.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...