Skip to main content
Question

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

  • August 7, 2023
  • 5 replies
  • 39 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

virtualcitymatt
Celebrity
Forum|alt.badge.img+47

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+59
  • Evangelist
  • August 8, 2023

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
  • August 8, 2023

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
  • August 8, 2023

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
  • August 10, 2023

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.