Hello,
I have been working on generating a NAC solution decoders and rules, but I haven't succeeded. Kindly help me create the decoders and rules. Here is a log sample:
{"timestamp":"2026-04-22T08:50:54.326+0000","agent":{"id":"107","name":"PICS0017","ip":"192.168.1.17","labels":{"org":"PI"}},"manager":{"name":"WazuhServer"},"id":"1776847854.7698569177","full_log":"2026-04-22T11:50:53+03:00 pics0026 {\"userip\": \"192.168.106.86\",\"userid\":\"anjogu\",\"type\":\"application\",\"timestamp\":\"Apr 22 2026 11:50:53\",\"source\":\"web-grm\",\"name\":\"stop-networkaccess\",\"msg\":\"Device was disabled network access\",\"hostname\":\"pics0026\",\"hostid\":\"192.168.106.127\",\"data\":{\"username\":\"anjogu\",\"destinationMac\":\"E6:E9:0F:36:BB:33\",\"browserInfo\":\"Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148\"}}","predecoder":{"timestamp":"2026-04-22T11:50:53+03:00"},"decoder":{"name":"json"},"data":{"userip":"192.168.106.86","userid":"anjogu","type":"application","timestamp":"Apr 22 2026 11:50:53","source":"web-grm","name":"stop-networkaccess","msg":"Device was disabled network access","hostname":"pics0026","hostid":"192.168.106.127","data":{"username":"anjogu","destinationMac":"E6:E9:0F:36:BB:33","browserInfo":"Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148"}},"location":"/var/log/syslog"}
{"timestamp":"2026-04-22T07:35:23.878+0000","agent":{"id":"107","name":"PICS0017","ip":"192.168.1.17","labels":{"org":"PI"}},"manager":{"name":"WazuhServer"},"id":"1776843323.5571422352","full_log":"2026-04-22T10:35:22+03:00 pics0026 {\"type\": \"application\",\"timestamp\":\"Apr 22 2026 10:35:22\",\"time\":\"2026-04-22T07:35:22.728Z\",\"source\":\"core-npe\",\"name\":\"change-access\",\"msg\":\"New access restricted assigned to device
192.168.8.81/9A:AF:0E:81:9D:DC\",\"hostname\":\"pics0026\",\"hostid\":\"192.168.0.235\",\"data\":{\"ruledescription\":\"Initialize role\",\"rolereason\":\"Untrusted device\",\"role\":\"untrusted\",\"destinationMac\":\"9A:AF:0E:81:9D:DC\",\"destinationAddress\":\"192.168.8.81\",\"accessgroup\":\"restricted\"}}","predecoder":{"timestamp":"2026-04-22T10:35:22+03:00"},"decoder":{"name":"json"},"data":{"type":"application","timestamp":"Apr 22 2026 10:35:22","time":"2026-04-22T07:35:22.728Z","source":"core-npe","name":"change-access","msg":"New access restricted assigned to device
192.168.8.81/9A:AF:0E:81:9D:DC","hostname":"pics0026","hostid":"192.168.0.235","data":{"ruledescription":"Initialize role","rolereason":"Untrusted device","role":"untrusted","destinationMac":"9A:AF:0E:81:9D:DC","destinationAddress":"192.168.8.81","accessgroup":"restricted"}},"location":"/var/log/syslog"}