There are two aspects of your question "How do you configure a PutMongo NiFi Processor "
1. Connection details: Connection URL, User Auth, Wire encryption (SSL )
2. Actual Query: make sure query syntax is correct.
If you can post an error snipped and snap from the processor config to be able to isolate if this query issue or connection issue.
Assume if this is with query-related issue , then you can verify if the same query works from the generic mongo db client? if not then same query will not work from nifi:PutMongo as well.
Thank You.