Forum Discussion

andrew_bryant's avatar
andrew_bryant
Brass Contributor
May 10, 2019

Send to analytics data collector errors

I have two playbooks that collect logs in JSON format from a 3rd party API (Proofpoint TAP and Cisco AMP for endpoints).  When I run the playbooks I can see that each one gets data from the third party API.  But then it fails to send it to log analytics with these errors.

 

TAP:

ExpressionEvaluationFailed. The execution of template action 'For_each' failed: the result of the evaluation of 'foreach' expression '@body('HTTP')' is of type 'String'. The result must be a valid array.

 

AMP:

ExpressionEvaluationFailed. The execution of template action 'For_each' failed: the result of the evaluation of 'foreach' expression '@body('HTTP')' is of type 'Object'. The result must be a valid array.

 

Both of them use the HTTP connector to get the data.  Is there another step I need to do in between to get the data ready to import into log analytics?

Resources