Getting Data In

splunk dbconnect tail issue

rameshlpatel
Communicator

hi,
at time of adding database input i select tail as input type and add following query.

SELECT
pkey,fk_vehicle,created,processed,status,lasterror,obuid,started
FROM ocs_admin.tp_obuimportdata
{{WHERE $rising_column$ > ?}}

and add raising column field as 'created' column name.

My requirement is i want to fetch data from current timestamp but above configuration is fetching all table data.

Please suggest help.

0 Karma

abhijitmishra
Explorer

To the inputs.conf stanza add the following

tail.follow.only = true

linu1988
Champion

which is your time field? and your rising column should be incrementing. Do a where clause where it should ignore all the previous data then fetch it.

0 Karma
Get Updates on the Splunk Community!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...