All Apps and Add-ons

command="dbquery", A database error occurred: The user does not have permission to perform this action.

d12harshal
Path Finder

Hi Everyone,
While performing dbinfo, dbquery commands in the database for few tables I am getting following error message.
command="dbquery", A database error occurred: The user does not have permission to perform this action.

Thanks in Advance.

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Check your External Databases configuration and make sure the username and password are correct. Then check the database to make sure that user is allowed access to those tables. If you use MySQL, make sure access is granted to the user accessing from the Splunk server.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Check your External Databases configuration and make sure the username and password are correct. Then check the database to make sure that user is allowed access to those tables. If you use MySQL, make sure access is granted to the user accessing from the Splunk server.

---
If this reply helps you, Karma would be appreciated.
0 Karma

richgalloway
SplunkTrust
SplunkTrust

See a212830's comment. If that doesn't solve your problem then check the MSSQL permissions.

---
If this reply helps you, Karma would be appreciated.
0 Karma

d12harshal
Path Finder

There are 500 plus tables and I unable to access only few, configuration, username and password are correct only. You want me to check in MSSQL whether access is granted to respective tables?

Thank You.

0 Karma

a212830
Champion

You need to update permissions on the db connect config file. Do a search on splunk answers, and you’ll see examples.

0 Karma
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...