All Apps and Add-ons

REST Incrementing Start & End

richardphung
Communicator

This may be trivial...

I have a REST API URL:

...api.thiswebsite.com/client/v4/xxxxxxxxxxxxxxx/logs?start=(date-time-format)&end=(date-time-format)

The date-time-format they are requesting is RFC-3339 format:
e.g.
2020-01-29T17:00:21Z

The json that is returned looks like this:

{"ClientIP":"XXX.XXX.XXX","EndTimestamp":"2020-01-29T17:18:47Z","ResponseBytes":11627,"ResponseStatus":200,"StartTimestamp":"2020-01-29T17:18:47Z""}

Ideally, the start and end times would increment...
But I am unsure how to do this with the Add-On builder.

https://docs.splunk.com/Documentation/AddonBuilder/3.0.1/UserGuide/ConfigureDataCollection
https://docs.splunk.com/Documentation/AddonBuilder/3.0.1/UserGuide/ConfigureDataCollection#Use_check...

  • Checkpoint parameter name
  • Checkpoint field path
  • Checkpoint initial value

Please advise.

0 Karma
Register for .conf21 Now! Go Vegas or Go Virtual!

How will you .conf21? You decide! Go in-person in Las Vegas, 10/18-10/21, or go online with .conf21 Virtual, 10/19-10/20.