All Apps and Add-ons

REST API Input in Add-on Builder: POST body not affecting response

rayleigh29
Loves-to-Learn

I'm using Splunk Add-on Builder to configure a REST API input for Samsung Knox.

REST URL: https://region.manage.samsungknox.com/emm/oapi/audit/read

POST Request Headers:

  • Authorization: Bearer <token>

  • Content-Type: application/x-www-form-urlencoded

POST Request Body

  • client_id
  • client_secret
  • grant_type
  • timeZone = +07:00
  • includeProcessInfo = true
  • includeLogData = true

image.png

The request is successfully sent, but the response always returns timestamps in UTC (+00:00) and doesn't seem to reflect the timeZone (auditTimestampText) or other body parameters i requested.


rayleigh29_0-1761929655571.png

When I test this in Postman, I get the expected log results with localized timestamps and full data.

But when I configure the same request in Add-on Builder, the response seems incomplete or ignores the body parameters — especially timeZone.

reference for Samsung Knox API (https://docs.samsungknox.com/dev/knox-manage/api/#tag/Audit/operation/read)

Any information on how to debug this? or any workaround for this?

Thank you.

Labels (2)
Tags (1)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

But is that parameter supposed to control the output or the input of the search time range?

0 Karma

rayleigh29
Loves-to-Learn

you mean the timeZone parameter?  

In Postman, setting timeZone=+07:00 actually changes the output field "auditTimestampText" to reflect the specified timezone — I get timestamps like 2025-10-31T23:18:00.663+07:00 instead of 2025-10-31T23:18:00.663+00:00 .

 

0 Karma

PickleRick
SplunkTrust
SplunkTrust

Well, since it's TLS and you can't just eavesdrop on the wire, unless there is a way to raise logging level for add-on builder (I'm not sure about that) the way to go to see what's actually being sent would be to set up a MITM proxy server.

0 Karma
Get Updates on the Splunk Community!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...