Member since
01-16-2020
3
Posts
0
Kudos Received
0
Solutions
01-17-2020
06:47 AM
I am wanted to split this txt file into separate flow files at the spaces. I am very new to nifi and regex and am unsure of which processor and properties I will need. For example: srcip=10.10.10.10 timestamp=152532431 action="denied" logver=12 tz="UTC+0" logid="0000012" dstip=12.12.12.12 This snippet is part of a long line that I need to split up at the spaces So here I would have 6 separate flow files. Any help appreciated.
... View more
Labels:
- Labels:
-
Apache NiFi
01-16-2020
03:19 PM
Hi Matt Thank you for the reply. That is what I am after however, say those three attributes were in a long list of say 25 attributes and I only wanted certain ones. Would I have to list all of them like you have, to get the desired flowfile attributes out? For instance: srcip=10.10.10.10 timestamp=152532431 action="denied" logver=12 tz="UTC+0" logid="0000012" dstip=12.12.12.12 Say I wanted srcip, action and dstip but none of the others. Would I need to list each attribute within each new property? Say would this not work and why?
... View more
01-16-2020
08:15 AM
Very new to Nifi and regex. I have a test txt file with a mock log file in. Format along the lines of: srcip=10.10.10.10 timestamp=152532431 action="denied" What I need is to match against the word and then return everything after the '=' until the next space character. Any help would be appreciated.
... View more
Labels:
- Labels:
-
Apache NiFi