Splunk Search

DB Query with time parameter

RobertRi
Communicator

Hi!

I have installed the DB Connect App and want to use a Query in which I have to pass a time based value as a Parameter

| dbxquery query="SELECT Name, Timestring FROM myTable WHERE Timestring >= ? ;"  connection="DB2" params="1806211100"

This works well and now my question, how can I calculate this "1806211100" Timestring whitin that search and append it as the params Parameter?

Thanks
Rob

Tags (1)
0 Karma

poete
Builder

Hello @RobertRi,

where doas the Paameter come from? Is it the result of a search query?

0 Karma

RobertRi
Communicator

Hi! The query is embedded in a form search and via a time token, the user has the Chance to define the time

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...