Parser failure
Hello !
I am currently trying to use crowdsec on my Apache Guacamole server.
I used the corvese/apache-guacamole-logs collection, and edited the pattern of the parser.
Sadly, i always get a parser failure, but my pattern is supposed to work according to https://grokdebugger.com/
I join my parser as image (/etc/crowdsec/parsers/s01-parse/apache-guacamole-logs.yaml)
Here is the command i use to test :
cscli explain --log "2025-07-03T12:58:55,174Z [http-nio-8080-exec-4] WARN o.a.g.r.auth.AuthenticationService - Authentication attempt from 1.2.3.4:6833 for user "dqfhnqtn" failed." --type corvese/apache-guacamole-logs --debug
And this is the output :
What am I doing wrong here ? How can i have more details on the error ?
My server OS is Debian.
Crowdsec version: v1.6.9-debian-pragmatic-amd64-40b8cfe6
Thanks a lot for taking some time to help me !Grok Debugger | Autocomplete and Live Match Highlghting
Easily debug Logstash Grok patterns online with helpful features such as syntax highlghting and autocomplete. Standard Grok patterns as well as patterns for Cisco firewall, HAProxy, Java, Linux Syslog, MongoDB, Redis, PostgreSQL, and more. Useful when creating Grok patterns for your ELK (ElasticSearch, Logstash, Kibana) or ELastic Stack.


20 Replies
Important Information
This post has been marked as resolved. If this is a mistake please press the red button below or type
/unresolve
© Created By WhyAydan for CrowdSec ❤️
Your missing the
s00
parsers so you must install cscli collections install crowdsecurity/linux
the extra information is your missing the syslog-logs
parser which has the parser to know how to convert file based log lines into appropiate s01
stage items.Thanks a lot for your help.
I installed crowdsecurity/linux, even rebooted but still the same error.
Maybe my command is wrong ?
cscli explain --log "2025-07-03T12:58:55,174Z [http-nio-8080-exec-4] WARN o.a.g.r.auth.AuthenticationService - Authentication attempt from 1.2.3.4:6833 for user "dqfhnqtn" failed." --type corvese/apache-guacamole-logs --debug

hmmm, can you show the output of
cscli config show

okay also
ls -la /etc/crowdsec/parsers/**/*.yaml

ahh okay so did you acidentally install the debian version then ours on top?
like version
1.4.6
then 1.6.9
i had an update after adding the repos, so maybe !
can you try this script https://gist.github.com/LaurenceJJones/6960107296145e8e365009973b9d7f6d
it will basically update the symlinks
as basically the debian version hosts them in a different folder hence the red text as they are dead links
then if you run
ls -la /etc/crowdsec/parsers/**/*.yaml
again none of them should be red, hopefully
note this will override your changes but I guess your the one that created the PR?Thank you @Loz
It looks like the script worked.
I edited the parser again with my pattern, but still fails.


Edited parser :
I don't get why it fails, with Grok Debbuger it looks fine
Can you run
cscli collections install crowdsecurity/linux --force
and once then I noticed the type
in your explain command is not correct it should be apache-guacamole

the type is just
apache-guacamole
nothing elsesame result, just noticed i kept corvese/

works fine my side
@Loz It's a bit weird, but now if I test my logfile instead of the log line it actually works
Thank you so much for your time, i was loosing my hair with this 🤣
Have a great day !
Resolving Parser failure
This has now been resolved. If you think this is a mistake please run
/unresolve