Splunk Search

Can we forward a specific table of a DB to Splunk?

sgrsplunk
New Member

Is it possible to forward specific table of a DB to Splunk? I understand that we can push the complete DB and create a dashboard to see the data we wish to. But I am more interested in understanding if we can just feed a table to the forwarder?

Many thanks in advance

0 Karma

kyleburk
Explorer

if the table is always being added to and you only want new events (preferably you'd have a timestamp field as well):

create a DBconnect connection with a query similar to the following:

SELECT * FROM [TABLE]
WHERE [TABLE].[uniqueeventID] > ?
ORDER BY [TABLE].[uniqueeventID] ASC

then use the rising column method to only retrieve new events added to the table.

If the entire table changes each time you look at it, do a batch collection to grab all events in the table on a scheduled basis.

0 Karma

kmorris_splunk
Splunk Employee
Splunk Employee

You can use DB Connect: http://docs.splunk.com/Documentation/DBX/3.1.3/DeployDBX/Createandmanagedatabaseinputs

DB Connect allows you to input data from a database, output to a table, or use data that resides in a database as a lookup without ingesting it. Typically, time-series data is a good candidate for ingestion.

0 Karma

andreacorvini
Path Finder

Using the DB Connect APP to collect information does not suit you?

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 ...