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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...