Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process Unifi Network Application syslog #9

Closed
yuha0 opened this issue Jan 20, 2024 · 3 comments
Closed

Process Unifi Network Application syslog #9

yuha0 opened this issue Jan 20, 2024 · 3 comments

Comments

@yuha0
Copy link
Owner

yuha0 commented Jan 20, 2024

  1. Deploy fluentbit fleet as a deployment with syslog listener input and loki output.
  2. Configure Unifi Network Application to send syslog to fluent.
  3. Process logs in loki and profit.
@bossjones
Copy link

I'm sure you don't need any pointers, but I did some of the unifi (syslog) -> promtail -> loki work using docker-compose and you might be able to leverage that. https://github.com/bossjones/docker-compose-prometheus/tree/feature-perf/outputs (those are all of my rendered files).

some of it is redundant, but i'm lazy at times haha.

Also, fluent-bit is great and all, but i've been having fun with Vector lately (having played with syslog-ng, rsyslogd, promtail, beats, fluent-bit, fluentd and vector at this point haha).

Goodluck! (btw I came across your repo while looking for inspiration on setting up my k3d local env w/ argocd / etc )

@yuha0
Copy link
Owner Author

yuha0 commented Jan 28, 2024

@bossjones Thanks for the recommendations!

I don't use docker but the fundamentals are similar. I have a mild preference for fluent-bit due to it being a bit more resource efficient in various benchmarks. Vector is very cool. I should check it out again.

However, it looks like there's no easy and reliable way to configure Unifi OS to send syslog over TLS. And I can't send unencrypted logs over UDP due to my threat model (I try to keep my work on network security minimum). So, realistically speaking, I will probably end up spinning up an unpoller to pull logs over API(HTTPS) and push to loki.

@yuha0
Copy link
Owner Author

yuha0 commented Jan 31, 2024

Well this is totally unexpected, but turned out unpoller does not support firewall log API at the moment and I went with vector:

CleanShot-20240130-202515@2x

Now I am wondering if I can do more with my unifi gears. I may never be able to manage them the Kubernetes way, but at least Ansible has been working well so far. This gives me the answer to #8: I need an ansible execution system that periodically reconciles machines, so AWX it is.

@yuha0 yuha0 closed this as completed Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants