Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NiFi Processor #59

Open
tspannhw opened this issue Jul 16, 2020 · 1 comment
Open

NiFi Processor #59

tspannhw opened this issue Jul 16, 2020 · 1 comment

Comments

@tspannhw
Copy link

Is there a NiFi processor?   I thought last time we talked, you had one.   If not, maybe I'll take a look.  Always love your libraries.

@nielsbasjes
Copy link
Owner

Yes, we talked about it (I think it was Barcelona) and I really tried to create one.

I have created it for my other project https://yauaa.basjes.nl/UDF-ApacheNifi.html but for this log parsing library it was harder.

The main hurdle I was unable to take is that the configuration of this logparser is a two step thing.

  1. First dialog: You specify the access logformat (and optional extra dissectors and mappings).
  • The system then analyzes this and gives a list of possible output values.
  • Some of those values are wildcards (like for extracting the name of a cookie or query parameter).
  1. Second dialog: Show all of these possible values and allow editing (i.e. wildcards and selecting which fields are wanted) and specifying the name of the attributes the results must be stored in. In case of a wildcard you can either leave it (so you get a map / key-value structure) or you specify one or more explicit values (so you get only those).

What I remember from Andy's talk in Barcelona is that this should be possible.

Yet I have not been able to find an example that do something this.
Note that my frontend (javascript/html/css and such) skills are too limited to figure this out myself.

So if you can give this a try then please do so.
I'm fine with such a processor being either in this project of being a native part of Nifi itself.
Note that this library is already bundled with Apache Pig and Apache Drill, so adding Nifi to this list seems like a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants