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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...