This does not really answer my question...
I am wanting to create a DB lookup that allows me to pass in to input values to an advanced query, but I am not able to figure out how I need to format my query in Splunk. I have tried the format like I originally included and also this format.
SELECT TOP 1 Meta_LogDate, FirstName, LastName, Region
FROM People_Historical
WHERE UserName = {{UserName}}
AND Meta_LogDate <= {{LogDate}}
ORDER BY Meta_LogDate DESC
Then tried to use the following search, without success.
source=actionlog | lookup db_connect_HistoricalPeople UserName, LogDate OUTPUT FirstName, LastName, Region
How would I format the query to allow me to pass the inputs from the search?
... View more