-
Notifications
You must be signed in to change notification settings - Fork 3
Plugin creates the file but does not append alerts #16
Comments
Hi @LaurenceJJones, do you have any idea? |
Hey @zbalkan , |
Just for context the above user also brought this to my attention and I been putting of creating an official plugin, so just to make it easier for everyone here a wip official plugin The TLDR; I made it compatible with this current plugin so it will be a "drop in" replacement, key difference is im not using logrus dependency since it was mostly a hack since originally I didnt want to write rotation by scratch |
At last, his project will be finalized. It was already done by @LaurenceJJones mostly. I'll be glad to archive this repo as soon as the said PR is merged. |
Hey @zbalkan , |
Hey @zbalkan wonder if we can tap into your wazuh experience, the user above is getting an error on filebeat that shows the original JSON but is complaining about
dont suppose you ever encountered this? know if off topic to original issue but im clueless for wazuh problems 😆 more info: wazuh community support is suggestin we alter the log format to be syslog compatible but imo that not the problem the problem seems to be when the data is ingested on elastic side its not decoding properly more info: they linked us to an upstream issue |
Hi. Can you please let me know the configuration and overall setup you used so that I can reproduce the issue? |
Hey @zbalkan , |
Agent and rule are enough. I'll try to recreate and let you know. |
Just for some digging on the upstream issue people are complaining that the indexer on elastic might be complaining when a json has different values for different objects. We did create this index map for elastic using http plugin https://docs.crowdsec.net/docs/next/notification_plugins/elastic#potential-mapping-issues However, I dont know if the filebeat agent on the machine is not doing something correct 🤷🏻 but like I said im like a fish out of water here just throwing information hoping something sticks |
Hey @zbalkan , thanks for helping waiting for your response. |
Wazuh community support managed to find the issue is within filebeat as Do you know in the official plugin if I can choose a different value and we can use that within wazuh filter? |
I believe it is just easier if we use a root with different name like |
Awesome! If this can be showcased in wazuh configuration example, then I can make sure to update the default format and include examples in the crowdsec docs |
I currently don't have a setup in my sandbox. I can try to collect with a new lab environment tomorrow. It'd be easier as Crowdsec already has correlated the events. At that point, it's just forwarding the alert as is, as all of them are important. If we need to work with different levels of severity, we can just create multiple rules and it'd be fine. That was what I intended since the beginning. |
The application creates the alert file but it does not append the alerts.
When I check the logs with
cat /var/log/crowdsec.log | grep notif
command, I saw that the plugin process is exited.but
htop
shows that process is running, yet does not use any CPU resources. There's something wrong with this setup.The text was updated successfully, but these errors were encountered: