When I try to run a query against the nifi 2.5.0 API to get info about provenance activities, it seems to be quite difficult.
I installed NIfi on my PC with no modifications and all default settings, and just use the default user and password that's created when you install it.
I run this in my local windows CMD window and get "unknown error" :
curl --insecure -X DELETE -H "Authorization: Bearer <my token> " https://localhost:8443/nifi-api/provenance/queries
Then I run this and get :
curl --insecure -X DELETE -H "Authorization: Bearer <token>" https://localhost:8443/nifi-api/provenance/queries > test.txt
In text.txt file I get :
"An unexpected error has occurred. Please check the logs for additional details."
I'm starting to think the Provenance part of the API might be broken as it shouldn't be this hard?
I ran other API queries and they work fine.
What I'm trying to do is get a list of all files that have passed through my small local nifi installation so we can track what files have moved through nifi and when, as a form of monitoring.
Any help appreciated!
Thanks in advance.