Splunk Search

DB Connect Temporal Lookup - does it exist?

newbernd
New Member

Hi.

I am trying to figure out how to put together a time based lookup using the DBX conduit, connected to a radius session table. Radius table has start/stop times and IP. Original event table has IP and event time. It feels like I need to do something like this:

Lookup SQL:

SELECT * from `radius`.`radiusacct`
WHERE acctstarttime < @eventTime 
AND (@eventTime > acctstoptime OR acctstoptime IS NULL)

Field Mapping:

Event IP --> Radius IP

But I don't think I am able to call out things like @eventTime in the SQL Query, am I?

Any ideas on how to accomplish?

Thanks

Dave

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