C
CrowdSecโ€ข8mo ago
b_d0n

help with the crowdsec unifi collection

is there a way too get the collection too work for a UDM-SE they have API access now.
139 Replies
CrowdSec
CrowdSecโ€ข8mo ago
Important Information
Thank you for getting in touch with your support request. To expedite a swift resolution, could you kindly provide the following information? Rest assured, we will respond promptly, and we greatly appreciate your patience. While you wait, please check the links below to see if this issue has been previously addressed. If you have managed to resolve it, please use run the command /resolve or press the green resolve button below.
Log Files
If you possess any log files that you believe could be beneficial, please include them at this time. By default, CrowdSec logs to /var/log/, where you will discover a corresponding log file for each component.
Guide Followed (CrowdSec Official)
If you have diligently followed one of our guides and hit a roadblock, please share the guide with us. This will help us assess if any adjustments are necessary to assist you further.
Screenshots
Please forward any screenshots depicting errors you encounter. Your visuals will provide us with a clear view of the issues you are facing.
ยฉ Created By WhyAydan for CrowdSec โค๏ธ
GNU Plus Windows User
GNU Plus Windows Userโ€ข8mo ago
no, the issue is that CrowdSec doesn't support CEF syslog https://github.com/crowdsecurity/hub/issues/940
GitHub
Unifi OS 3 aren't being parsed ยท Issue #940 ยท crowdsecurity/hub
Describe the bug Unifi OS 3 and newer logs are not being parsed correctly, resulting in detection scenarios such as port scanning not working correctly. To Reproduce Install the unifi collection cs...
b_d0n
b_d0nOPโ€ข8mo ago
Reading into all that, it looks like they are adding a disable magic syslog RFC parsers, slated for 1.6.6?
GNU Plus Windows User
GNU Plus Windows Userโ€ข8mo ago
yup, it should deal with about 90% of the issues until CEF support is added in 1.7.0
b_d0n
b_d0nOPโ€ข8mo ago
So it likely wonโ€™t fully work until 1.7.0
GNU Plus Windows User
GNU Plus Windows Userโ€ข8mo ago
yup it's just a workaround
b_d0n
b_d0nOPโ€ข8mo ago
Did this happen due to the new zone based firewall?
GNU Plus Windows User
GNU Plus Windows Userโ€ข8mo ago
no this has been an issue for a few years look at the date the issue was opened
b_d0n
b_d0nOPโ€ข8mo ago
Ahh, I see sorry just now switched to full UniFi so was never concerned about it til now
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
Hi people, sorry if it has already been asked, but I encounter the same issue, can someone give me a quick recap about what is working and what is not, I am a little bit lost
PintjesBier
PintjesBierโ€ข5w ago
Is CEF support added in the 1.7.0 release? Or you meant in further 1.7.x release? Currently Unifi is not working. They have been working on it for a while though...
iiamloz
iiamlozโ€ข5w ago
So there is 3 issues: - Unifi switching over to CEF means you cannot use our Syslog acquistion (even with disable magic RFC since it not a syslog packet). You must use Rsyslog to collect the entries and write them to a file. - We do not have a CEF (s00) or a Unifi CEF aware (s01) parser to turn the data into something actionable with scenarios - Not all logs from unifi are CEF, I have updated the unifi (s00) to work with these logs but its pending to be merged since I needed more data to be sure I can merge it
bui
buiโ€ข5w ago
I have some unifi at home, I can be a guinea pig ๐Ÿ™‚
iiamloz
iiamlozโ€ข5w ago
I am working on the CEF parser and to some extent the unifi stuff, I have the "suricata" examples but anymore add them to issue please ๐Ÿ˜„ I have unifi also well UDM but I dont expose anything so all I have is admin logs ๐Ÿ˜„
bui
buiโ€ข5w ago
same
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
I enabled some syslog on my firewall rules, so everytime someone each a service hosted behind it logs it I can give you sample if you need Just ping me with the sample log you need
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
For me I have no CEF format available
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
This is how it looks like on latest version
No description
iiamloz
iiamlozโ€ข5w ago
You dont get to choose its "whatever unifi wants to send depending on the event type" hence why its tricky
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
Yeah cause my dream machine send in a syslog like format atleast for firewall rules, hit logs
iiamloz
iiamlozโ€ข5w ago
it sends in syslog for firewall events AFAIK, and intrusion attempts its CEF
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
Yeah But I don't know why firewall events doesn't get parsed
iiamloz
iiamlozโ€ข5w ago
Cause most likely its the issue with relayed packets are you already using rsyslog?
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
On CrowdSec VM or on unifi ?
iiamloz
iiamlozโ€ข5w ago
VM
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
or both
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
I think I do have rsyslog installed, but I used this to configure https://app.crowdsec.net/hub/author/crowdsecurity/collections/unifi and set my CyberSecure to send logs on port 4242
Collections, AppSec Rules & Configurations | CrowdSec Hub
Manage collections, configurations, remediation components, and AppSec rules with CrowdSec Hub. Streamline security with tools and integrations for enhanced protection.
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
I configured nothing more, that might be the issue
iiamloz
iiamlozโ€ข5w ago
I am still working on the CEF stuff, but you can see in the PR the example rsyslog configuration
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
Thanks, I will look at it, I am still very new to this domain
iiamloz
iiamlozโ€ข5w ago
but its very WIP and may not work
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
For my own curiosity, if we use acquid.d with "syslog", it has to comply to RFC right ? that is why it is advised to use rsyslog with a custom parser ?
iiamloz
iiamlozโ€ข5w ago
Yes as unifi doesnt comply with RFC standards
PintjesBier
PintjesBierโ€ข5w ago
@iiamloz Are we able to test the new Unifi implemantation (per https://github.com/crowdsecurity/hub/issues/940#issuecomment-3253838553) or do we need to update to some beta version or such first? (Running 1.7.0)
GitHub
Unifi OS 3 aren't being parsed ยท Issue #940 ยท crowdsecurity/hub
Describe the bug Unifi OS 3 and newer logs are not being parsed correctly, resulting in detection scenarios such as port scanning not working correctly. To Reproduce Install the unifi collection cs...
iiamloz
iiamlozโ€ข5w ago
I already merged the firewall stuff so that will be on 1.7 but the CEF stuff is not merged so if you want to test you are going to have to download things manually and set them up I can write a quick tldr
PintjesBier
PintjesBierโ€ข5w ago
yes pls
iiamloz
iiamlozโ€ข5w ago
added tldr to comment
PintjesBier
PintjesBierโ€ข5w ago
Will set it up and report back Just to be sure; the rsyslog config & logrotate config are these on the syslog server or on the Unifi device?
iiamloz
iiamlozโ€ข5w ago
syslog server where CrowdSec is installed I just pushed an updated rsyslog example, im trying to make sure it doesnt break with existing rsyslog configs @PintjesBier seems the file didnt update in the link go to actual file ๐Ÿ˜„ https://github.com/crowdsecurity/hub/pull/1457/files#diff-30a462c491efedfff89be5ac747b88961a2b9829c48afef8fd02bb0cb76f40bf
PintjesBier
PintjesBierโ€ข5w ago
I have set it up (though somewhat janky, due to restrictions on the platform I'm using). Will let it run for a while and see, however I'm unsure if Unifi is outputting the correct logs... edit: not the correct logs, but IF they're even outputting the logs Seems like 'logs' from the insights tab are not logged to syslog.
iiamloz
iiamlozโ€ข5w ago
within the unifi section for SIEM, did you enable most / some of the categories?
PintjesBier
PintjesBierโ€ข5w ago
all of them on debug now... Still nothing afaik have tog o now
iiamloz
iiamlozโ€ข5w ago
just make sure there nothing blocking like a firewall on the syslog server and/or you adapted the variable to allow unifi IP
PintjesBier
PintjesBierโ€ข5w ago
I am receiving logs from Unifi. However Unifi is just not publishing the 'security CEF logs' to the syslog server for some reason... Will test further tommorow
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
Will it be possible in the future to handle also iptables logs? I mean out of the box, without requiring too many tinkering
iiamloz
iiamlozโ€ข5w ago
What do you class as tinkering? cause the Rsyslog stuff is going to have to be done just to get the logs to crowdsec, the collection / parsers / scenarios (eventually) will be as simply installing/updating the unifi collection.
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
It's much more about unifi collection
iiamloz
iiamlozโ€ข5w ago
yeah that will be as simply as cscli hub update && cscli hub upgrade if you already have it installed
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
If on the collection page it just gives the rsyslog config, it should be easy
iiamloz
iiamlozโ€ข5w ago
but since its not merged it gotta be manually installed for testing
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
Sweet
iiamloz
iiamlozโ€ข5w ago
Yeah thats my plan, plus I am going to follow up with a blog post to make sure people find it
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
Nice Crowdsec looks very hard But in fact, it's not that hard when everything clicks I just got misled, because the collection page for unifi wasn't giving much infos
iiamloz
iiamlozโ€ข5w ago
it like a car, if you just want to drive it, its pretty simply. As soon as you want to make modifications you gotta learn whats under the hood.
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
Exactly
iiamloz
iiamlozโ€ข5w ago
Yeah cause its not merged yet, as soon as I get working version with people testing it then it will be updated.
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
But I have to agree, this year unifi change everything at each update They changed features and layout every single update in the firewall area
iiamloz
iiamlozโ€ข5w ago
Plus I gotta think through the scenarios, so once parsing out of the way then its how we turn the data into something actionable Yep, the new flows section is nice
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
Yeah it's much more useful I also migrated my legacy rules into the zone thing
iiamloz
iiamlozโ€ข5w ago
cause before everything was buried in settings
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
But in the latest update, they broke the port forwarding thing
iiamloz
iiamlozโ€ข5w ago
nice...
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
One page is missing, and some links does nothing Port forwarding is now part of the new rules UI but if you want to update a rules, if you click "open port forwarding" it does nothing So you have to find the original rules by hand
PintjesBier
PintjesBierโ€ข5w ago
Loz, when you say Unifi is sending out security related messages in CEF format... does that include rule hits? Because I receive those in 'normal syslog format' (?)
Sep 5 07:55:32 UDM-Gent [WAN_LOCAL-D-2147483647] DESCR="[WAN_LOCAL]Block All Traffic" IN=eth4 OUT= MAC=78:45:58:de:fc:eb:00:00:5e:00:01:20:08:00 SRC=ATTACKER_WAN DST=MY_WAN LEN=40 TOS=00 PREC=0x00 TTL=245 ID=17105 PROTO=TCP SPT=60023 DPT=27017 SEQ=2906131471 ACK=0 WINDOW=1024 SYN URGP=0 MARK=1a0000
Sep 5 07:55:32 UDM-Gent [WAN_LOCAL-D-2147483647] DESCR="[WAN_LOCAL]Block All Traffic" IN=eth4 OUT= MAC=78:45:58:de:fc:eb:00:00:5e:00:01:20:08:00 SRC=ATTACKER_WAN DST=MY_WAN LEN=40 TOS=00 PREC=0x00 TTL=245 ID=17105 PROTO=TCP SPT=60023 DPT=27017 SEQ=2906131471 ACK=0 WINDOW=1024 SYN URGP=0 MARK=1a0000
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
I think does aren't security related those* I think security are the ones also logged in flows
PintjesBier
PintjesBierโ€ข5w ago
Rule hits are logged in flows... But you probably mean the IDS/IPS detections, no?
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
Yeah those But I can't be sure, I couldn't find any documentation on what is logged in which category on the unifi documentation
iiamloz
iiamlozโ€ข5w ago
In the rsyslog configuration there is 2 files, one for syslog lines and one for CEF.
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
Security Firewall, Honeypot, Intrusion Prevention Threat Detected and Blocked, Honeypot Triggered, Blocked by Firewall
PintjesBier
PintjesBierโ€ข5w ago
Yeah, it's very very very confusing... I have reached out to Unifi support again and they forwarded it to the dev team... (again)
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
Ubiquiti Help Center
UniFi System Logs & SIEM Integration
UniFi provides a robust, structured activity logging system that gives you full visibility into your networkโ€™s health, performance, and security. These logs capture key eventsโ€”such as connectivity ...
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
Apparently it's only threat and honeypot So I assume rules hits still use syslog
PintjesBier
PintjesBierโ€ข5w ago
Yeah, due to not being able to change my rsyslog config (until I deploy a proper syslog server, which I'm planning to do) I have them both spit out in the same file and have the crowdsec agent run both 'types' on them... For the time being I don't mind the extra overhead. That should work, right?
filenames:
- /syslog-server/syslog-UDMP-DTC.log
- /syslog-server/syslog-UDM-Gent.log
labels:
type: unifi
---
filenames:
- /syslog-server/syslog-UDMP-DTC.log
- /syslog-server/syslog-UDM-Gent.log
labels:
type: cef
---
filenames:
- /syslog-server/syslog-UDMP-DTC.log
- /syslog-server/syslog-UDM-Gent.log
labels:
type: unifi
---
filenames:
- /syslog-server/syslog-UDMP-DTC.log
- /syslog-server/syslog-UDM-Gent.log
labels:
type: cef
---
iiamloz
iiamlozโ€ข5w ago
for unifi it should yes, just make sure you have updated the parser to latest that I merged yesterday
PintjesBier
PintjesBierโ€ข5w ago
I have updated the Unifi parsers. However can't find the CEF parsers on github. Did anything change on those as well?
iiamloz
iiamlozโ€ข5w ago
I need to push a fix for the unifi-cef, but you can find all files linked in the pull request https://github.com/crowdsecurity/hub/pull/1457
PintjesBier
PintjesBierโ€ข5w ago
alright, looking good after updating ๐Ÿค˜๐Ÿฝ
No description
iiamloz
iiamlozโ€ข5w ago
push fixes to unifi-cef file, as I took my example from a previous version and it seems unifi added a timestamp to all logs
PintjesBier
PintjesBierโ€ข5w ago
I noticed, waiting for github tests to complete and will update afterwards! Should I remove the syslog parsing for the time being so we can see if CEF is correctly parsing?
iiamloz
iiamlozโ€ข5w ago
Nah its all good, you just have the double read overhead but we can see if it parsing via cscli metrics
PintjesBier
PintjesBierโ€ข5w ago
oh yah, forgot there was a parsers metric as well lmao updated version running now
iiamloz
iiamlozโ€ข5w ago
so my idea for scenarios right now are : - Trigger bucket for medium and high "UNIFIrisk" rating - Leaky bucket for low "UNIFIrisk" rating in the ball park of (3/60 seconds)
PintjesBier
PintjesBierโ€ข5w ago
Looks good to me. However I strongly suggest adding a scenario for rule hits as well... If an IP gets blocked several times on the same rule (or even different rules) I don't think it has good intentions... I have 5783 'Block internet to gateway' hits since this morning...
No description
iiamloz
iiamlozโ€ข5w ago
but isnt block to internet to gateway simply just a inherit drop rule? or let me know what that rule is cause I dont have that in my UDM cause im not exposing anything
PintjesBier
PintjesBierโ€ข5w ago
By default they only block 'invalid' traffic to the gateway I think. I have added 'new' traffic as well.
No description
iiamloz
iiamlozโ€ข5w ago
this is the similar rule I guess
No description
iiamloz
iiamlozโ€ข5w ago
which is a "catch all" for any ports that are not forwarded?
PintjesBier
PintjesBierโ€ข5w ago
You're right
Jordy aka. Stead
Jordy aka. Steadโ€ข5w ago
Do you think it would be possible to detect port scan? A kinda similar scenario as the iptables one's
PintjesBier
PintjesBierโ€ข5w ago
Unifi detects port scanning And once again if they would hit the cleanup rules several times on a different port I would guess they're port scanning as well
iiamloz
iiamlozโ€ข5w ago
the base unifi collection thats already released already detects port scanning, as it uses the iptables scenarios
b_d0n
b_d0nOPโ€ข5w ago
So for unraid I just need do a path for /var/log/ and point this to the file location on my syslog? In my case on unraid I believe my only choice is syslog-ng container
PintjesBier
PintjesBierโ€ข5w ago
I also use unraid and use it's built in syslog server. However if I were to redo it, I would setup a dedicated syslog server
b_d0n
b_d0nOPโ€ข5w ago
Sadly for unraid it seems thereโ€™s either the built in, grafana stack or syslog-ng by linuxserver
PintjesBier
PintjesBierโ€ข5w ago
You can run every docker there is out there (not only those from the app-store) and you can always setup a VM But if your unraid server is the only one you have, I would go with a docker
b_d0n
b_d0nOPโ€ข5w ago
What docker would u recommend? Syslog-ng works but no gui
PintjesBier
PintjesBierโ€ข5w ago
I haven't looked into the different syslog servers. Just go with whichever you feel most comfortable I guess
b_d0n
b_d0nOPโ€ข5w ago
Why would u change from the built in?
PintjesBier
PintjesBierโ€ข4w ago
Because, I don't deem it the NAS's duty to be a syslog server + the built in has pretty much no configuration Just an update: still no CEF logs after 1.5 days of running... However no IDS/IPS detections since as well... Wondering if I could trigger it manually somehow
GNU Plus Windows User
GNU Plus Windows Userโ€ข4w ago
You can trigger the IPS rules manually if you run this curl command curl -A BlackSun http://example.com
bondskin
bondskinโ€ข4w ago
Did it and it shows up in Network app but not in unifi log file
PintjesBier
PintjesBierโ€ข4w ago
Doesn't seem to trigger anything for me... Not even in the Unifi app lmao aha, it showed up. But was quite some delay edit: doesn't seem to get parsed, shows up in the logfile however. This is the CEF line:
Sep 8 08:32:20 UDM-Gent CEF: 0|Ubiquiti|UniFi Network|9.4.19|201|Threat Detected and Blocked|9|proto=TCP src=192.168.100.252 spt=65020 dst=23.215.0.138 dpt=80 UNIFIcategory=Security UNIFIsubCategory=Intrusion Prevention UNIFIhost=UDM-Gent UNIFIsite=UDM-Gent UNIFIdeviceMac=78:45:58:de:fc:e7 UNIFIdeviceName=UDM-Gent UNIFIdeviceModel=UDM UNIFIdeviceIp=192.168.100.1 UNIFIdeviceVersion=4.4.0 UNIFIrisk=high UNIFIipsSessionId=1328559940562927 UNIFIipsSignature=ET USER_AGENTS Suspicious User Agent (BlackSun) UNIFIipsSignatureId=2008983 UNIFIutcTime=2025-09-08T06:32:20.613Z msg=A network intrusion attempt from Desktop d5:5d to 23.215.0.138 has been detected and blocked.
Sep 8 08:32:20 UDM-Gent CEF: 0|Ubiquiti|UniFi Network|9.4.19|201|Threat Detected and Blocked|9|proto=TCP src=192.168.100.252 spt=65020 dst=23.215.0.138 dpt=80 UNIFIcategory=Security UNIFIsubCategory=Intrusion Prevention UNIFIhost=UDM-Gent UNIFIsite=UDM-Gent UNIFIdeviceMac=78:45:58:de:fc:e7 UNIFIdeviceName=UDM-Gent UNIFIdeviceModel=UDM UNIFIdeviceIp=192.168.100.1 UNIFIdeviceVersion=4.4.0 UNIFIrisk=high UNIFIipsSessionId=1328559940562927 UNIFIipsSignature=ET USER_AGENTS Suspicious User Agent (BlackSun) UNIFIipsSignatureId=2008983 UNIFIutcTime=2025-09-08T06:32:20.613Z msg=A network intrusion attempt from Desktop d5:5d to 23.215.0.138 has been detected and blocked.
iiamloz
iiamlozโ€ข4w ago
nice CEF: 0 there a space :facepalm: unifi doing there own thing as usual as stated in RFC, the CEF:<version> should have no space
For
CEF 0.x version

Sep 19 08:26:10 host CEF:0|Security|threatmanager|1.0|100|worm successfully stopped|10|src=10.0.0.1 dst=2.1.2.2 spt=1232

For CEF 1.x version

Sep 29 08:26:10 host CEF:1|Security|threatmanager|1.0|100|worm successfully stopped|10|src=10.0.0.1 dst=2.1.2.2 spt=1232
For
CEF 0.x version

Sep 19 08:26:10 host CEF:0|Security|threatmanager|1.0|100|worm successfully stopped|10|src=10.0.0.1 dst=2.1.2.2 spt=1232

For CEF 1.x version

Sep 29 08:26:10 host CEF:1|Security|threatmanager|1.0|100|worm successfully stopped|10|src=10.0.0.1 dst=2.1.2.2 spt=1232
iiamloz
iiamlozโ€ข4w ago
ahhhh f...
Ensure the following when encoding symbols in CEF:
- Spaces used in the header are valid. Do not encode a space character by using <space>.
Ensure the following when encoding symbols in CEF:
- Spaces used in the header are valid. Do not encode a space character by using <space>.
Okay working on fixing it, did it go into the CEF file as expected?
PintjesBier
PintjesBierโ€ข4w ago
I don't have the seperate file, so can't tell you that...
iiamloz
iiamlozโ€ข4w ago
Okay, I will add to the CEF parser a optional catch for the syslog date time
PintjesBier
PintjesBierโ€ข4w ago
Awesome Loz! Thanks for these swift updates! Glad to see this moving forward
iiamloz
iiamlozโ€ข4w ago
Added your examples (with some stuff sanitised) and got it working with the syslog prefixes, so if you update your files to the new ones within the PR it should now parse. again no scenarios so it wont do anything, but at least for now we just testing parsing
PintjesBier
PintjesBierโ€ข4w ago
on it!
PintjesBier
PintjesBierโ€ข4w ago
Got parsed now!
No description
iiamloz
iiamlozโ€ข4w ago
and did you have unifi-cef installed?
PintjesBier
PintjesBierโ€ข4w ago
yessir Manually updated from the PR
iiamloz
iiamlozโ€ข4w ago
but you dont see that inside parser metrics? ๐Ÿ‘€
PintjesBier
PintjesBierโ€ข4w ago
Huh, the cef-logs which says '1 parsed' (?)
iiamloz
iiamlozโ€ข4w ago
Yes, but there another parser at s01 called unifi-cef inside the PR, which should have also parsed
PintjesBier
PintjesBierโ€ข4w ago
yeah, I have updated that as well... Don't see any mention of that one... edit: yes I do
PintjesBier
PintjesBierโ€ข4w ago
No description
iiamloz
iiamlozโ€ข4w ago
"2"! so at least something were parsed
PintjesBier
PintjesBierโ€ข4w ago
Yesshhh
bondskin
bondskinโ€ข4w ago
Do I need to install the unifi-cef manually? As I cannot find it in the parser list? I have the unifi-logs installed: name: crowdsecurity/unifi-logs file_name: unifi-logs.yaml path: parsers/s00-raw/crowdsecurity/unifi-logs.yaml version: "0.2" dependencies: {} local_path: /etc/crowdsec/parsers/s00-raw/unifi-logs.yaml local_version: "0.2" cscli parsers install child-crowdsecurity/unifi-cef Error: cscli parsers install: can't find 'child-crowdsecurity/unifi-cef' in parsers cscli parsers install crowdsecurity/unifi-cef Error: cscli parsers install: can't find 'crowdsecurity/unifi-cef' in parsers
PintjesBier
PintjesBierโ€ข4w ago
I have manually created the s00-raw & s01-parse files from the PR (https://github.com/crowdsecurity/hub/pull/1457/files) They're not published yet, so for now it's manually like this
iiamloz
iiamlozโ€ข4w ago
Im just working on HAProxy stuff, but still got the scenarios burning in the back of my brain ๐Ÿ˜„
Jordy aka. Stead
Jordy aka. Steadโ€ข7d ago
Hey folks, is there anything new regarding unifi integration ?
iiamloz
iiamlozโ€ข4d ago
just waiting for any feedback from people that did what I asked in the issue ๐Ÿ˜…
PintjesBier
PintjesBierโ€ข4d ago
What feedback were you looking for? The parsing seems to be running fine. However do I do see these errors from time to time, but I was unable to retrieve the actual log line... 2025-09-27T23:51:04.703866816Z time="2025-09-27T23:51:04Z" level=error msg="failed to parse source_ip xx.xx.xxx: ParseAddr(\"xx.xx.xxx\"): IPv4 address too short" The IP is my WAN ip...
iiamloz
iiamlozโ€ข4d ago
most if the CEF is working ๐Ÿ˜„
PintjesBier
PintjesBierโ€ข4d ago
| child-crowdsecurity/cef-logs | 1.18M | 23 | 1.18M |
| child-crowdsecurity/cef-logs | 1.18M | 23 | 1.18M |
PintjesBier
PintjesBierโ€ข4d ago
No description
iiamloz
iiamlozโ€ข4d ago
I guess you still have logs going to same file?
PintjesBier
PintjesBierโ€ข4d ago
Correct
PintjesBier
PintjesBierโ€ข4d ago
Here's the full parser metric
No description
PintjesBier
PintjesBierโ€ข4d ago
Might give some clarity
iiamloz
iiamlozโ€ข4d ago
the CEF is extremely low, but I guess that is fine? the firewall logs are great though ๐Ÿ˜„
PintjesBier
PintjesBierโ€ข3d ago
I'm having issues with my Unifi installation currently, so it's hard to verify if the number is accurate... It seems low indeed, but I have most things that are normally flagged by IDS/IPS (thus using CEF format) blocked by firewall rules (syslog format). So that would explain it...

Did you find this page helpful?