- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
sending as mail attachment the nifi log or customized log
- Labels:
-
Apache NiFi
Created ‎12-05-2016 05:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Minor sidenote: can use TailFile with polling interval as alternative to GetFile.
Created ‎12-23-2016 01:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Greg, I had tried with Tailfile and its working fine, thanks for the solution and idea to do it
