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

Splunk DB Connect 1: Can I run dbquery with a variable?

$
0
0
I need to schedule a report which runs dbquery, but I need that report to run with a variable in the query e.g. | eval myVar=stuff | dbquery source "select * from table where timestamp >= '".myVar."'" Or something like that, but of course this doesn't work since dbquery must be the first command of a search. Has anyone come across this before or found a way around it?

Viewing all articles
Browse latest Browse all 47296

Trending Articles



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