Skip to content

Instantly share code, notes, and snippets.

View kimsyversen's full-sized avatar

Kim Syversen kimsyversen

View GitHub Profile
@kimsyversen
kimsyversen / db_documents_to_sentinel.sh
Created February 11, 2024 08:35
db_documents_to_sentinel.sh
#!/bin/bash
# Authors: Martin Eide, Kim Syversen
### Requirements
# Your Dream Machine sends logs to a syslog server
# https://github.com/unifi-utilities/unifios-utilities/tree/main/on-boot-script-2.x must be installed
# This script must be stored in /data/on_boot.d/
# Set chmod +x for this script and run script manually one time to create cron job
# Credits sed query https://stackoverflow.com/questions/39447749/jq-cannot-parse-mongodb-output-document