-
Notifications
You must be signed in to change notification settings - Fork 155
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
Parser Failure: "Line 0/2 is missing evt.StrTime" #928
Comments
Both failures to parse are not the same cause So, the Apache2 logs most likely failed because you are using a custom format to append the subdomain onto the end of the line. Edit: my initial presumption is most likely wrong given I can see some bad user agents trigger so many it certain lines The ssh logs failed because the attempt was just a preauthed and wasn't an actual attempt to log in with user/pass or keys Once I am back on Monday, I can try to debug apache logs further, however, for ssh you can grep to file for the word failed And that should parse correctly |
@LaurenceJJones Thank you! Should this work for SSH:
|
No because that event came from Just for more clarity within auth.log all authentication attempts are logged we only cover sshd
If it helps |
I am sorry, yes, you are fully right. These were connection attempts from the KVM console . Here is a line which should trigger this log search term:
So it seems to work. My fault was that I used "ssh" as type but it should be "sshd". So the only open question would be, what does this warning message mean:
Is this something I have to worry about? Apache parsing does work as well. I made the same mistake. The type should not be "apache" but "apache2". In this case it does work and now I do not get that "evt.StrTime" error anymore:
|
This warning message means the line did not have the date/time parsed out of the line so when using However, one caveat of the warning message is that it shows when the line is not parsed at all which is correct so can lead to confusion that the warning is the cause of the line not being parsed but it is not. |
Closing issue as completed, and opened a docs issue to clarify it more |
After installing CrowdSec on my Debian machine, I tried the following command
tail -n 2 /var/log/apache2/access.log | cscli explain --type apache -f -
to check if the Apache log file can be parsed correctly.
However, I do get a "Parser Failure" and I am now wondering if something is wrong with my installation?
I do get a similar error if I try the same with my SSH log file:
tail -n 1 /var/log/auth.log | cscli explain --type ssh -f -
Did I miss something?
However: I see alerts and decisions generated by CrowdSec:
The text was updated successfully, but these errors were encountered: