Skip to main content
Question

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


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+35

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+47
  • 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
geomancer wrote:

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
virtualcitymatt wrote:

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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings