Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Create DB Connect V2 Lookup with query parameters

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

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>