Technitium parser
Hi,
I'm trying to write a custom parser for technitium failed auth logs. However I'm unable to get it working properly... (Grok Debugger confirms that the correct things are getting matched though)
Log example:
However, I keep getting this log:
8 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 ❤️
Seems your hubtest may be missing the
s00 parser crowdsecurity/syslog-logsI can see the syslog-logs s00 parser in it's s00 folder, if that's what you're referring to
However, I don't think this uses syslog format?
No I mean within your tests you define you need to add
crowdsecurity/syslog-logs, nope but this parser has the "catch all" for file definitions
also there is no filter property
you should add a filter: evt.Parsed.program == 'technitium' for example
the evt.Parsed.program gets set from crowdsecurity/syslog-logs using the labels.typeThat seems to have done the trick! Can you elaborate on why syslog s00 parsing is needed even when it's not in syslog format?
at the bottom of the parser is a catch all style filter which sets the
evt.Parsed.program property and moves it to s01 stage, then in s01 we need to use the filter property to make sure we only attempt to parse the lines that are appropiate for this parser.
snippet for syslog-logs:
I seeee. Alright
Thanks
Resolving Technitium parser
This has now been resolved. If you think this is a mistake please run
/unresolve