Community Blog
Get the latest updates on the Splunk Community, including member experiences, product education, events, and more!

AI-Powered Splunk Database Monitoring

CaitlinHalla
Splunk Employee
Splunk Employee

Key Takeaways

  • Use the Splunk AI Assistant in Splunk Database Monitoring to generate detailed breakdowns of complex, normalized database queries.
  • Get actionable query rewrite suggestions to increase query efficiency and decrease performance costs.
  • Understand the "why" behind optimizations with step-by-step explanations of AI-driven recommendations.

 

We’ve already dug into the importance of database monitoring in Database Monitoring: The Complete Guide – databases are essential to our applications and services. Observability ensures these systems and the databases that back them are performant, efficient, and functioning reliably.

In our last post, we explored how to quickly identify and resolve database query issues across our entire database fleet with Splunk Database Monitoring. Now, we’re taking it a step further by using the power of the Splunk AI Assistant to quickly summarize complex queries and even get recommendations on how to optimize queries to increase efficiency and decrease performance cost.   

Accessing the AI Summary

With the AI Assistant enabled, AI-powered summaries of normalized database queries become available automatically within Splunk Database Monitoring. To get started, navigate to a specific query within Splunk Database Monitoring.

Once we click into a specific query, we’ll see the Summarize button located above the query statement:

CaitlinHalla_0-1771512581402.png

Once we select Summarize, we get a detailed breakdown of the query including:

  • An explanation of the query’s primary function
  • A breakdown of each statement in the query
  • The specific use case or intent of the query

CaitlinHalla_1-1771512581413.png

Boost performance with AI recommendations

Optimizing queries is a big part of getting better performance out of a database. With AI recommendations, this task becomes streamlined with AI-powered rewrite suggestions.

We can access suggestions via the AI recommendations tab within a selected query:

CaitlinHalla_2-1771512581423.png

The AI recommendations don’t just tell you that a query is slow, it provides specific optimizations with a fully optimized SQL query. Recommendations are also fully explained, step-by-step so we get insight into the reasoning behind the optimizations:

CaitlinHalla_3-1771512581432.png

Here, it’s recommended that we avoid using a SELECT * statement so we don’t retrieve all columns from the tables unnecessarily. Full table scans are very slow, especially with JOINs, so the revised query should be significantly faster. The best part is that we don’t need to remember all these rules thanks to the AI assistant’s recommendations and explanations.

Wrap up

Combining the deep visibility of Splunk Database Monitoring with the intelligence of the Splunk AI Assistant allows you to move from identifying problems with database performance to optimizing performance in record time. By summarizing complex query statements and applying expert-level recommendations for optimizations, you can ensure your database fleet runs leaner and faster.

Already a Splunk Observability Cloud customer and ready to try out Splunk Database Monitoring? Contact our sales team to try it out today.

New to Splunk Observability Cloud? Start with a free 14-day trial.

Resources

 

Keep the good stuff coming. Here’s how to subscribe to this blog — and stay in the loop on the topics that matter to you.  

Contributors
Get Updates on the Splunk Community!

Build the Future of Agentic AI: Join the Splunk Agentic Ops Hackathon

AI is changing how teams investigate incidents, detect threats, automate workflows, and build intelligent ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...