Hi I am not sure I fully understand what ‘data’ you are referring to. Is this the usual Log data? If so it is still somewhat unusual requirement to log something during some time frame and ignore during others, so that is why I am asking if you can clarify what ‘data’ you are referring to. In any event you also use variety of Unix/Linux tools as well as other OS and commercial applications to aggregate, search, manipulate log data. For example, let’s say you have a log like this:
07:11:41,118 INFO main server.Server:403 - Started @47542ms 07:17:48,596 INFO main server.JettyServer:832 - NiFi has started. The UI is available at the following URLs: 08:01:11,596 INFO main server.JettyServer:834 - http://fe80:0:0:0:c07e:7dff:fe92:3ddb%awdl0:8080/nifi 09:18:51,597 INFO main server.JettyServer:834 - http://fe80:0:0:0:0:0:0:1%lo0:8080/nifi 09:11:41,597 INFO main server.JettyServer:834 - http://192.168.1.114:8080/nifi . . . and you want to extract only logs between 7 and 8 AM, something like this would do the trick 'grep "0[7-8]:” my-log.log’, but could be more sophisticated. Cheers Oleg > On Dec 13, 2016, at 6:08 AM, Vidhyashreemurthy N > <[email protected]> wrote: > > Hello, > > Firstly, i thank you for an excellent tool! NiFi has helped me in a lot of > ways. > I have started using NiFi just a couple of hours ago. Im asked to perform > the following task with the next 4 hours. I went through the documentation > roughly, I didnt find the apt answer. Can you please help me with the > following issue? > > I have a question about the NiFi operations. > I want to know how can i set a time frame for data to be logged into log > file. > Suppose, in one day, i want the data from 5:00pm to 6:00pm alone to be > stored into log file. The rest 23 hrs of data should be ignored and not to > be stored in log file. > > How can i achieve this?
