Splunk AppDynamics

How to put a date and time condition in a ADQL statement

Basam_Nath
Explorer

select * from transactions where order-date is between 01/01/2018 12:00:00 to 01/02/2019 12:00:02

Labels (1)
Tags (1)
0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi @Basam.Nath

Please make a note that the supported timestamp format  is:

  • ISO 8601 format: yyyy-MM-dd'T'HH:mm:ss.SSSZZ
  • UNIX epoch date format: A 13-digit number representing the number of seconds/milliseconds since UNIX epoch time (Jan 1 1970). For example, (GMT): Mon, 17 Apr 2017 23:46:22 GMT would be 1492472782000.

About Orderdate, it appears to me that Orderdate is collected as a "String" and as you know, date manipulation does not work on string values.

 

Get Updates on the Splunk Community!

Splunk Enterprise Security(ES) 7.3 is approaching the end of support. Get ready for ...

Hi friends!    At Splunk, your product success is our top priority. With Enterprise Security (ES), we're here ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...