Hello,
I have a table in my database that records changes to a record in my people table. I have a trigger that inserts a the new data into the historical table when the record changes and timestamps it. I need to do a lookup on that table based on username and the date on the event in Splunk.
I am trying to create a dblookup using DB Connect that will run a query like the following:
<code>
SELECT TOP 1 Meta_LogDate, FirstName, LastName, Region
FROM People_Historical
WHERE UserName = $UserName$
AND Meta_LogDate <= $LogDate$
ORDER BY Meta_LogDate DESC</code>
How can I do this with DB Connect V2, the interface does not allow me to create add parameters to the advanced query when creating the lookup.
↧