All Apps and Add-ons

How to use Splunk to search values pulled from an Oracle DB table?

soleblazer
Engager

Hi all. I have a table in our application database that records when reports are generated. It includes great info such as the report type, the duration the report took, start/end, parameters, etc.

I'd love to have Splunk generate some sort of timechart on the different report types, or perhaps even a way to see how many concurrent reports are being generated. My question is, how can I have splunk query the db (as it does any normal file) for this information? Is it possible?

Thank you, it may be a dumb question but I'm trying 🙂

0 Karma

pmdba
Builder

The Log File Analysis for Oracle 11g add-on paper describes step-by-step exactly how to do what you're talking about. Using the "dbquery" command from the DB Connect app, you can generate all the reports you're talking about, without affecting your Splunk license. A report query would look something like this:

| dbquery "oradb" "select to_char(report_date,'DD-MON-YYYY HH24:MI:SS'), report_type from report_log" | timechart count by report_type
0 Karma

wpreston
Motivator

Probably the easiest way would be to install and use the Splunk DB Connect app. With it, you can connect to and index your Oracle tables or just run SQL queries on them within Splunk. The documentation for DB Connect is here. Good luck!

Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...