Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

NIFI : tailfile and compressed files

avatar
New Member

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 ?

1 ACCEPTED SOLUTION

avatar

Hi @David Cuny , I see 2 issues with what you are trying to do:

  1. TailFile currently doesn't support logs which got compressed on rollover.
  2. TailFile docs explicitly claim to not use 0 seconds as a runtime schedule due to CPU overload, change to a few seconds instead.

Please see https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.TailFile/index...

View solution in original post

4 REPLIES 4

avatar

Hi @David Cuny , I see 2 issues with what you are trying to do:

  1. TailFile currently doesn't support logs which got compressed on rollover.
  2. TailFile docs explicitly claim to not use 0 seconds as a runtime schedule due to CPU overload, change to a few seconds instead.

Please see https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.TailFile/index...

avatar
New Member

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 ?

avatar

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.

avatar
New Member

thx a lot.