All Apps and Add-ons

Why is rising column getting old logs into Splunk aswell?

kiranpanchavat1
Path Finder

Hello Team,

we have selected the rising column feature of DBX that allows Splunk to incrementally import new database records. But it’s not working and getting old logs into our Splunk aswell. 

we need logs from the 01st March 2022 but we are receiving logs from the last year 2021. 

select * from xxxxxxxxxxxxxxx
SELECT * FROM your_table
WHERE LoginDt > ?
ORDER BY LoginDt ASC

checkpoint value : 3/1/2022 00:00:00.000

Labels (1)
Tags (1)
0 Karma

scelikok
SplunkTrust
SplunkTrust

Hi @kiranpanchavat1,

If LoginDt field is not DateTime type field, the query will be sorted as text. This does not seem Splunk DBConnect problem.

You can test the result by replacing ? sign with checkpoing value.

SELECT * FROM your_table
WHERE LoginDt > '3/1/2022 00:00:00.000'
ORDER BY LoginDt ASC

The best option is using an ID column if there is any incrementing numeric field, the lst option may be a DateTime field.

If this reply helps you an upvote and "Accept as Solution" is appreciated.
0 Karma
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 ...