Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to pull Data from metron alerts ui rest api using nifi

How to pull Data from metron alerts ui rest api using nifi

New Contributor

I just a quick question on which processor I need to use if I want to pull data from rest API of metron alerts UI

example

curl -u<user>:<password> -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'api_key: search' -d '{ "indices": [], "facetFields": [], "query": "(source\\:type:exmplae1 OR alert.source\\:type:example2) AND (is_alert:true OR alert.is_alert:true)", "from": 0, "size": 25 }' 'http://URLofMyserver:withport/api/v1/search/search'

I jusyt wanted to know to pull query http requests on nifi. what processor should i use for good practice