[ 
https://issues.apache.org/jira/browse/NIFI-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14905759#comment-14905759
 ] 

Randy Gelhausen commented on NIFI-994:
--------------------------------------

A good test case is:
Start tailing processor pointing at /var/log/app.log
Stop tailing processor
Allow logrotate to rotate /var/log/app.log
Start tailing processor

Expected Result:
Emit line 1
Emit line 2
Emit line 3
etc.

Essentially the processor needs to resume emitting from where it left off in 
the sequence of log-lines. It should handle recognizing where it left off, read 
any available rotation archives (app.log.1, app.log.2, etc.) in order, and then 
catch back up emitting from the live app.log file.

> Processor to tail files
> -----------------------
>
>                 Key: NIFI-994
>                 URL: https://issues.apache.org/jira/browse/NIFI-994
>             Project: Apache NiFi
>          Issue Type: New Feature
>    Affects Versions: 0.4.0
>            Reporter: Joseph Percivall
>
> It's a very common data ingest situation to want to input text into the 
> system by "tailing" a file, most commonly log files. Currently we don't have 
> an easy way to do this. 
> A simple processor to tail a file would benefit many users. There would need 
> to be an option to not just tail a file but pick up where the processor left 
> off if it is interrupted.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to