Skip to main content
Question

How can I use the HTTPCaller to get data from SPLUNK RES API

  • Aug 7, 2023 4:24 PM UTC
  • 5 replies
  • 102 views

fbrws
BANNED
Forum|alt.badge.img+2

I am able to use Powershell to get json data from SPLUNK Res API.

Now I want to translate this method to the HTTPCaller, but I dont succeed to get this working in FME. Does anybody have experience with this or has some tips and tricks?

 

5 replies

itsmatt
Celebrity
Forum|alt.badge.img+48
  • Celebrity
  • Aug 7, 2023 5:30 PM UTC

Hmm, looks pretty ok from here. There should be a couple of attributes on the rejected feature which hopefully might give you some clues as to what's going wrong. Check out the _reponse_body and _response_code attributes


geomancer
Evangelist
Forum|alt.badge.img+71
  • Evangelist
  • Aug 8, 2023 5:53 AM UTC

Under Workspace Parameters > Translation change the parameter 'Rejected Feature Handling' to 'Continue Translation'. Then you can study the rejected feature to determine what went wrong.

image


fbrws
BANNED
Forum|alt.badge.img+2
  • Author
  • BANNED
  • Aug 8, 2023 7:30 AM UTC

Under Workspace Parameters > Translation change the parameter 'Rejected Feature Handling' to 'Continue Translation'. Then you can study the rejected feature to determine what went wrong.

image

Good tip, thx!


fbrws
BANNED
Forum|alt.badge.img+2
  • Author
  • BANNED
  • Aug 8, 2023 7:31 AM UTC

Hmm, looks pretty ok from here. There should be a couple of attributes on the rejected feature which hopefully might give you some clues as to what's going wrong. Check out the _reponse_body and _response_code attributes

I'll do thx!


fbrws
BANNED
Forum|alt.badge.img+2
  • Author
  • BANNED
  • Aug 10, 2023 4:36 PM UTC

Soluton is to use a GET instead of POST!

And use SPLUNK parameters in the Query String Parameters.

I have added an image of the HTTP caller with correct layout.