All Apps and Add-ons

REST API Input -- Checkpoint datetime parameter encoding in API url.

vpsvpsvps
New Member

Hello!

I am trying to define a REST data input that uses an encoded URL param to fetch data. That param is a datetime value, called 'last_seen', see the following image:

alt text

What I'm after is a way to encode the datetime value so that the API can process it correctly.

Example: for a value of 2017-07-26T15:07:37.000+01:00 the encoded string value should look exactly like this 2017-07-26T15%3A07%3A37.000%2B01%3A00

0 Karma

luck123813
Explorer

Were you able to get this figured out, I had the same issue?

@vpsvpsvps

0 Karma
Get Updates on the Splunk Community!

Updated Data Type Articles, Anniversary Celebrations, and More on Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

A Prelude to .conf25: Your Guide to Splunk University

Heading to Boston this September for .conf25? Get a jumpstart by arriving a few days early for Splunk ...

4 Ways the Splunk Community Helps You Prepare for .conf25

.conf25 is right around the corner, and whether you’re a first-time attendee or a seasoned Splunker, the ...