Created 12-05-2016 05:01 PM
I trying to capture log details and sending as an mail or as an attachment through nifi process.
Please help me out,
Created 12-05-2016 05:10 PM
You need to use "GetFile" to get the log file. Then use split text or some filter process based on your requirements to parse log file (or simply just send the whole file) and then send to PutEmail processor to send the emil.
https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.PutEmail/
Created 12-05-2016 05:10 PM
You need to use "GetFile" to get the log file. Then use split text or some filter process based on your requirements to parse log file (or simply just send the whole file) and then send to PutEmail processor to send the emil.
https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.PutEmail/
Created 12-18-2016 06:13 PM
Minor sidenote: can use TailFile with polling interval as alternative to GetFile.
Created 12-23-2016 01:18 PM
Thanks Greg, I had tried with Tailfile and its working fine, thanks for the solution and idea to do it