0
votes

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.

1

1 Answers

0
votes

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