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!

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...