Community Articles

Find and share helpful community-sourced technical articles.
Celebrating as our community reaches 100,000 members! Thank you!
Labels (1)

This was tested on Yosemite 10.10.5

1) Install NiFi on your MacOS:

2) Setup your machine to foward syslog messages to port 1514.

Backup your current syslog configuration.

 mv /etc/syslog.conf /etc/syslog.conf.bkp 

Edit your syslog.conf file to send all messages to UDP localhost port 1514

 sudo vi /etc/syslog.conf 

Add the following entry to /etc/syslog.conf

 *.*               @

Restart syslogd

sudo launchctl unload /System/Library/LaunchDaemons/  
sudo launchctl load /System/Library/LaunchDaemons/ 

Confirm syslogd is running. A result should display a process id (PID) for /usr/sbin/syslogd

 ps -ef | grep syslogd 

3) Test with NiFi.

Add a ListenSyslog processor to the canvas with following settings:

Protocol: UDP

Port: 1514

Local Network Interface: lo0

Connect the ListenSyslog process to an output port and have the relationship set to “success”. Start the ListenSyslog processor. You should see data get queued up and the Out statistics should show bytes flowing through the processor.


Sometimes you need to help it along and send some messages to the syslogd server. If so, try typing this in the command line and then verify the data flowing in NiFi

syslog -s test message