This Pack cleans up Ubiquiti Unifi data, normalizing to JSON whenever possible. If an event isn't understood by included parsing rules, trim the excess syslog decorators and pass through. My testing on a live Ubiquiti netowrk with 1 UDMP, 3 APs and several switches saw a reduction of more than 50% of the syslog data, and a dramatic improvement in searchability due to normalizing logs as JSON.
Before you begin, ensure that you have met the following requirements:
- Cribl Stream is installed on a VM/Container/Physical instance near your Unifi gear
- Alternatively, use a Cribl Cloud instance (free up to 1 TB per day in+out)
- Your Unifi devices have access to the a UDP port on the LogStream instance
- In the Unifi controller interface, navigate to System Settings -> Controller Configuration -> Remote Logging
- Ensure syslog is enabled
- Enter the name or IP of the Stream instance (or the VIP of the load balancer in front of Stream instances) that will receive syslog
- Select the port you will use to to receieve
- Install this Pack (Packs -> Add New)
- Define a syslog Source with the port required (as used above)
- Create a Route that points your syslog Source in step 2 to this Pack and a destination of your choice
- In the Pack, under knowledge:
unifi_hosts.csv
should be updated as appropriate for your networkunifi_suppress.csv
containsappnames
that will be somewhat suppressed- Once you have a feel for the data contained in various log message, adjust this file as needed
unifi_matches.csv
defines patterns used to identify fields contained in event data – adjust as needed
NOTE: If you require a load balancer in front of the syslog receiver, you will need to configure it appropriately
Renaming to clarify this is for Unifi products, and update verbiage, links
- Works with or without the Cribl syslog input Pack
- Time corrections in place
- Added punct field (optional)
- Fixed kernel message extraction
First general release
Feel free to fork the Pack repo and make adjustments. I will review submitted PRs for acceptance and publication. I'm also active in the Cribl Community Slack. Suggestions for enhancements are welcome.
To contact:
- Email
jrust@cribl.io
- Cribl Community Slack