Splunk Enterprise

REST API - To include Time

VijaySrrie
Builder

Hi,  

I am using below REST API  

https://splunk-api-url:8089/servicesNS/nobody/appname/search/jobs/export?output_mode=json&count=1&search=|savedsearch%20savedsearchname%20|search%20ProjectCode=1NN

I need to include time in the above URL - Please let me know how to do it, in the saved search we have DateAndTime values, when I try to fetch the DateAndTime as I am fetching the Project Code its not working

https://splunk-api-url:8089/servicesNS/nobody/appname/search/jobs/export?output_mode=json&count=1&se...   

 

Tags (2)
0 Karma
1 Solution

VijaySrrie
Builder

This one worked

https://splunk-api-url:8089/servicesNS/nobody/appname/search/jobs/export?output_mode=json&segmentation=none&latest_time=2020-07-15T00%3A05%3A00.000&earliest_time=2020-07-15T00%3A00%3A00.000&search=|savedsearch%20savedsearchname%20|search%20Code=XXX-10-12

View solution in original post

0 Karma

VijaySrrie
Builder

This one worked

https://splunk-api-url:8089/servicesNS/nobody/appname/search/jobs/export?output_mode=json&segmentation=none&latest_time=2020-07-15T00%3A05%3A00.000&earliest_time=2020-07-15T00%3A00%3A00.000&search=|savedsearch%20savedsearchname%20|search%20Code=XXX-10-12

0 Karma
Get Updates on the Splunk Community!

Prove Your Splunk Prowess at .conf25—No Prereqs Required!

Your Next Big Security Credential: No Prerequisites Needed We know you’ve got the skills, and now, earning the ...

Splunk Observability Cloud's AI Assistant in Action Series: Observability as Code

This is the sixth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Answers Content Calendar, July Edition I

Hello Community! Welcome to another month of Community Content Calendar series! For the month of July, we will ...