Context
I am using nxlog and sidecar to ingest Windows DHCP Server Logs into Graylogs.
The logs are automatically parsed thanks to GELF format but there is no EventCategory sent by Windows.
I’ve followed this tutorial: How to use graylog lookup table
I have created the lookup table to match EventID with EventCategory.
- event.csv
"EventID";"EventCategory"
"70";"DHCPv4.ScopeConfigured"
"71";"DHCPv4.ScopeModified"
"72";"DHCPv4.ScopeDeleted"
"73";"DHCPv4.ScopeActivated"
And it is working:
EventID 107 lookup with EventCategory DHCPv4.ReservationDeleted
Now I’m looking to create a pipeline to add a new field “EventCategory” where the value will be written according to EventID value.
I tried this Pipeline rule but the rule simulation gives no result:
rule "Windows Server DHCP: EventID lookup with EventCategory"
when
has_field("EventID")
then
let update_source = lookup_value("eventID_eventCategory",$message.EventID);
set_field("EventCategory", update_source);
end
Am I missing something ?
Thank you !
OS & Package Information:
- Rocky Linux 9
- docker compose 2.18.1
- Graylog 5.1.2
- traefik 2.10.1
- mongodb 6.0.6
- elasticsearch 7.10.2
- Windows Server DHCP
- nxlog latest
- sidecar latest