Re: NiFi - create folders and files based on hostname and date

2019-05-22 Thread N. J.
Thanks Koji. That was super quick. Let me try that. Might get back to you in case I face issues. Sent from my iPhone > On May 23, 2019, at 9:53 AM, Koji Kawamura wrote: > > Hello, > > In order to create the folders automatically, I would use PutFile like below: > - Assuming the incoming

Re: NiFi - create folders and files based on hostname and date

2019-05-22 Thread Koji Kawamura
Hello, In order to create the folders automatically, I would use PutFile like below: - Assuming the incoming FlowFile has attribute named 'host' so that PutFile's 'Directory' can refer it using NiFi Expression Language (EL) - The date part can also be generated using 'now()' EL function -

NiFi - create folders and files based on hostname and date

2019-05-22 Thread N. J.
Hi, Trying to "practically" replace multiple ingestion tools with NiFi. I have Syslog-NG as one these tools storing syslog messages to files based on the hostname (syslog.hostname) extracted from the syslog message and the date when the message was received. The following shows the