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

Better error message for "ossec-testrule: currently_rule not set!" #2093

Open
stefanct opened this issue Jul 26, 2023 · 4 comments
Open

Better error message for "ossec-testrule: currently_rule not set!" #2093

stefanct opened this issue Jul 26, 2023 · 4 comments

Comments

@stefanct
Copy link

I stumbled upon this error when debugging a configuration problem with ossec-logtest where a rule was missing the if_sid which seems to be absolutely necessary and stops the whole ossec setup from working in that instance. Documentation is lacking as well regarding if_sid but the most useful thing would be to improve logging output imho - and not only in the logtest application because one has to find out about this first. I completely unnecessarily wasted several hours due to this problem. This report is also food for search engines.

I still have to use v3.6.0 but from the looks of it the respective message is still the same in HEAD as it has not changed since 2015.

@atomicturtle
Copy link
Member

Have you got an example of the bad rule you were creating so I can use that for a test case/regression testing?

@stefanct
Copy link
Author

AFAICT it should be trivially reproducible by taking a rule set that has a rule with if_sid in it and remove that xml child from it.

@atomicturtle
Copy link
Member

You mean the parent referred by the if_sid? A rule without an if_sid is just a regular rule

@stefanct
Copy link
Author

No. It was not supposed to be a normal rule, and apparently it was not a complete "regular rules" either, because... then it would not have wrecked havoc as described in the OP.

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