GetMongo question

2016-04-27 Thread nadine giampapa
I am using the getMongo processor but every time it runs, it is returning results from the beginning of time. I have my processor schedule to run every ten minutes. I would like it to return only the new results since the last time the processor ran. Is there a way to do that?

Re: Help with replace method

2016-04-27 Thread Igor Kravzov
Thanks Joe. It worked great. On Wed, Apr 27, 2016 at 12:19 AM, Joe Percivall wrote: > Hello Igor, > > I got your template working by using the below replacement string and > changing the "Replacement Strategy" to "Always Replace". I've attached a > template that works

Re: Nifi parsing examples

2016-04-27 Thread Matt Burgess
Sorry that was just for example #2 :) > On Apr 27, 2016, at 3:59 PM, Matt Burgess wrote: > > If you can represent the expected string format as a regular > expression, you can use the replaceAll() function [1] with > back-references: > >

Re: Nifi parsing examples

2016-04-27 Thread Matt Burgess
If you can represent the expected string format as a regular expression, you can use the replaceAll() function [1] with back-references: ${url:replaceAll('(http://[a-zA-Z0-9]+:)[a-zA-Z0-9]+(@.*)','$1x$2')} original: http://username:p...@host.com after: http://username:xx...@host.com Note I

Re: Help with replace method

2016-04-27 Thread Igor Kravzov
Sorry for late response. Thanks Joe. I will take a look. So if I want to replace also new line '\n' with character representation "\n" I will need to do this {"test":"${teststr:replaceAll('"','"'):replaceAll('\n', 'n'}"}. Correct? On Wed, Apr 27, 2016 at 12:19 AM, Joe Percivall

Re: Apache NiFi with Fail2Ban

2016-04-27 Thread Mark Payne
Stephane, You should be able to uninstall the nifi service manually by removing the following files: /etc/rc2.d/S65nifi /etc/init.d/nifi /etc/rc2.d/K65nifi Thanks -Mark > On Apr 27, 2016, at 5:26 AM, Stéphane Maarek > wrote: > > Hi, > > I think I have messed

Connecting a Reporting Task to a Processor

2016-04-27 Thread Hite, Brett
Hi everyone, I'm pretty new to using NiFi and am running into a road block I was hoping someone could share some insight on. I inherited a custom processor that deletes data from a folder when disk space usage is set to a given threshold. The oldest data gets deleted first until the threshold

Apache NiFi with Fail2Ban

2016-04-27 Thread Stéphane Maarek
Hi, I think I have messed something up and I need some help I downloaded and untar nifi on my raspberry pi. Then I installed the service which is working (I can access nifi through my browser) Now something I can't do is the following: sudo apt-get install fail2ban How can I cleanly remove the