I am trying to work on Windows Logon Event Failures and have a message I need to break up into fields but I’m stumped as how to do so. I am not sure if I need to build a pipeline or an extractor. I do know that I’ll eventually need to be able to use the fields I’m creating with a lookup table to convert the hex into a description, if that plays into how to do this.
I’m a complete newb and I really appreciate any help you could give.
This would just build an alert email based on the pipeline though, not create the fields in the individual message when it’s stored to a string? Or is that what your let build statements are doing?
The “let build_mess…” are for eventually creating the “cmg_body” field that contains all the results of those concatenations and can be used in the body of the my e-mail to explain what is going on.
The meat of what you were asking about is this:
let LogonTypeErr = lookup_value("WinLogonErr" ,to_string($message.winlogbeat_event_data_Status), 0);
This uses the previously created WinLogonErr table to find whatever the contents of $message.winlogbeat_event_data_Status should equal. In your case it was 0xE you wanted to know what that really is and (assuming you have added all the the TGT errors into the WinLogonErr table you built) it would return KDC has no support for encryption type into the variable LogonTypeErr which you could then set into a field called “snazzy_field_name_here” in the following line: