- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
NIFI : tailfile and compressed files
- Labels:
-
Apache NiFi
Created 05-20-2016 08:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We are migrating all our logstash agents to NIFI dataflows.
We encounter a problem with weblogic log (wls.log) : we use ‘tailfile’ processor to ingest; we have a local script that compress once a day this log. At this time, the nifi process uses 200% of CPU, the inode doesn’t change and the file becomes wls.log.gz. Whener, nifi doesn’t bind to the new wls.log. How to avoid it ?
Created 05-20-2016 06:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @David Cuny , I see 2 issues with what you are trying to do:
- TailFile currently doesn't support logs which got compressed on rollover.
- TailFile docs explicitly claim to not use 0 seconds as a runtime schedule due to CPU overload, change to a few seconds instead.
Created 05-20-2016 06:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @David Cuny , I see 2 issues with what you are trying to do:
- TailFile currently doesn't support logs which got compressed on rollover.
- TailFile docs explicitly claim to not use 0 seconds as a runtime schedule due to CPU overload, change to a few seconds instead.
Created 05-31-2016 02:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi thanks for the answer.
To be more precise, our wls.log is renamed (with timestamp extension) then compressed... I don't know if it changes something ??
For the CPU overload, the runtime schedule is setted to 1. Is it not enough ?
Created 05-31-2016 03:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Compressed rolled files aren't supported today, this is called out in the docs.
As for runtime schedule - what are the time units? 1 of what? 🙂 Try bumping it more, without having access to a system and flow it's hard to suggest more specific numbers.
Created 06-01-2016 02:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thx a lot.