Knowledge Management

Splunk SQL query

rahul2gupta
Path Finder

Hi @gcusello ,

Is it possible to run a SQL query from Splunk search bar to a SQL server? i.e. I want to run a SQL query against server abc1sql07.

Is this possible ? if so, what permission do we need to setup on SQL server to ensure Splunk has permission to query the database?

Regards,

Rahul

0 Karma

anilchaithu
Builder

@rahul2gupta 

It is possible to query database from Splunk.

  • You need read permissions to the database.
  • You need to install splunk app for dbconnect on splunk

The syntax to run this query is

 

| dbxquery connection="connection_name" query="select ...."

 

 

Hope this helps

0 Karma
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...