Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
Ask Question
I've successfully created a flow that uses the processors ListenSyslog and PutFile to capture syslog messages and write them to a file on disk.
I would however like to be able to use the RouteOnAttribute processor to route these incoming syslog messages using the source IP of the syslog message. The ListenSyslog processor info page lists that it writes attributes "syslog.hostname - The hostname or IP address of the Syslog message" I want to use this attribute in my RouteOnAttribute processor.
I'am unclear on how to access the written attributes of the ListenSyslog processor from within the RouteOnAttribute processor configuration properties to achieve this.
every attribut can be access with this syntax :
${my_attribut}
.
in your case :
${syslog.hostname}
I suggest you to look at expression language if you want to use routeOnAttribut processor :
https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html
–
–
Thanks for contributing an answer to Stack Overflow!
-
Please be sure to
answer the question
. Provide details and share your research!
But
avoid
…
-
Asking for help, clarification, or responding to other answers.
-
Making statements based on opinion; back them up with references or personal experience.
To learn more, see our
tips on writing great answers
.