nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff <>
Subject Re: Write attributes into the content
Date Sat, 25 Nov 2017 17:15:06 GMT
Hello Tina,

Can you provide more detail about what your script is doing?  Are you
encountering an issue getting the filename for a flowfile, or in setting
the filename attribute on the new flowfile you are creating in your
script?  Could you post a link somewhere to your script?

On Fri, Nov 24, 2017 at 10:39 AM tzhu <> wrote:

> Hi,
> I want to know if I can access both attributes and contents and write them
> in a new flowfile.
> I have some log files, which are in folders labelled by client names. My
> task is to do some process on the log file contents and write the result to
> a SQL table. I also need to include the client name as one of the column in
> SQL table, and the information is only accessible from the file path. To
> process the contents, I know I can use executescript and write a custom
> script with streamcallback. But if I use "getAttribute" to access the
> filename and write a flowfile, it does not seem to work. Any help or ideas?
> Thanks,
> Tina
> --
> Sent from:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message