Hi Reddit - I need some help with sibling decoders and extracting JSON out of a custom log. Here's the log i'd like to decode:
[2023-03-16 09:48:33] production.INFO: API=validate-device UUID=0DC81B93-D79B-45Q9-B72F-45CBD05F6137 USERAGENT="Company/2 CFNetwork/1504.0.5 Darwin/22.3.0" AUTH=BLOCKED REQUEST={"os":"iOS","device_id":"0DC81B93-D79B-45Q9-B72F-45CBD05F6137","app_version":"9.3.0"} RESPONSE={"status":401,"message":"This device is not registered.Please register using the passcode.","auth":"BLOCKED"}These are my decoders.
<decoder name="app-server">I want the parent decoder to catch the log, then app-server-child1 to extract everything up until the REQUEST field and then the app-server-child2 & 3 to extract the JSON from the REQUEST & REPONSE fields. However it stops at app-server-child1. Can anyone advise please?
**Messages: INFO: (7202): Session initialized with token 'a4b0b8be' **Phase 1: Completed pre-decoding. full event: '[2023-03-16 09:48:33] production.INFO: API=validate-device UUID=0DC81B93-D79B-45Q9-B72F-45CBD05F6137 USERAGENT="Company/2 CFNetwork/1504.0.5 Darwin/22.3.0" AUTH=BLOCKED REQUEST={"os":"iOS","device_id":"0DC81B93-D79B-45Q9-B72F-45CBD05F6137","app_version":"9.3.0"} RESPONSE={"status":401,"message":"This device is not registered.Please register using the passcode.","auth":"BLOCKED"}' **Phase 2: Completed decoding. name: 'app-server' api: 'validate-device' auth-status: 'BLOCKED' date: '2023-03-16' level: 'INFO' time: '09:48:33' user-agent: 'Company/2 CFNetwork/1504.0.5 Darwin/22.3.0' uuid: '0DC81B93-D79B-45Q9-B72F-45CBD05F6137' **Phase 3: Completed filtering (rules). id: '100102' level: '2' description: 'Informational app-server log' groups: '["app-server"]' firedtimes: '1' mail: 'false' **Alert to be generated.--
You received this message because you are subscribed to a topic in the Google Groups "Wazuh mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wazuh/WoycCK3tpy4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/77703f02-5ce6-4f67-bd3c-e691b74ab001n%40googlegroups.com.