Hi Sanjay,
To parse all the decoded logs, the following steps are needed
Set <logall_json>yes</logall_json> under the <global> tag in the /var/ossec/etc/ossec.conf file
Restart the Wazuh-manager:
/var/ossec/bin/ossec-control restart
All the log data should be now in /var/ossec/logs/archives/archives.json which you can check with:
tail -f /var/ossec/logs/archives/archives.json
Now it’s necessary to indicate Filebeat that he must monitor our archives.json file.
So add the previous path under the ‘paths’ parameter in /etc/filebeat/filebeat.yml like the following:

After that, restart the service as usual with:
systemctl restart filebeat or service filebeat restart
Then, Kibana should be receiving our full data log and parsing it :


As you can see in the image, Kibana is receiving the full data logs.
It’s important to note that these alerts don’t have the parametersrule.* in the alert because they didn’t trigger a rule.
Let me paste you a screenshot of a classic rule so you can check the difference easily.

Please let me know if you have any questions or concerns.
Best Regards,
Jose
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To post to this group, send email to wa...@googlegroups.com.
Visit this group at https://groups.google.com/group/wazuh.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/96817a84-a72d-4f79-a8e8-31a9ba5a9034%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
"index_patterns": ["wazuh-alerts-3.x-*"]"index_patterns": ["wazuh-alerts-3.x-*", "wazuh-archives-3.x-*"]# Wazuh - Filebeat configuration file
filebeat.inputs:
- type: log
paths:
- '/var/ossec/logs/alerts/alerts.json'
fields:
origin: "wazuh-alerts-3.x"
- type: log
paths:
- '/var/ossec/logs/archives/archives.json'
fields:
origin: "wazuh-archives-3.x"
setup.template.json.enabled: true
setup.template.json.path: "/etc/filebeat/wazuh-template.json"
setup.template.json.name: "wazuh"
setup.template.overwrite: true
processors:
- decode_json_fields:
fields: ['message']
process_array: true
max_depth: 200
target: ''
overwrite_keys: true
- drop_fields:
fields: ['message', 'ecs', 'beat', 'input_type', 'tags', 'count', '@version', 'log', 'offset', 'type', 'host']
- rename:
fields:
- from: "data.aws.sourceIPAddress"
to: "@src_ip"
ignore_missing: true
fail_on_error: false
when:
regexp:
data.aws.sourceIPAddress: \b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b
- rename:
fields:
- from: "data.srcip"
to: "@src_ip"
ignore_missing: true
fail_on_error: false
when:
regexp:
data.srcip: \b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b
- rename:
fields:
- from: "data.win.eventdata.ipAddress"
to: "@src_ip"
ignore_missing: true
fail_on_error: false
when:
regexp:
data.win.eventdata.ipAddress: \b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b
output.elasticsearch:
hosts: ['http://localhost:9200']
pipeline: geoip
indices:
- index: '%{[fields.origin]}-%{+yyyy.MM.dd}'Thanks.
Will do, thanks Jose.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+unsubscribe@googlegroups.com.
Hi Sanjay,If I understood you correctly, you have our Wazuh OVA which contains ES, Kibana, and Wazuh-Manager in a virtual machine and you connected a Windows Agent right?I reviewed and tested your configuration and found no errors.Agents don't report Sysmon events by default, in order to get Sysmon events from Windows Agent, you need to properly configure it in that machine. You might find useful this link https://wazuh.com/blog/how-to-collect-windows-events-with-wazuh/. After configuring it you should be able to find the logs in `archives.json`.The behavior you describe is really weird since changing `level` in the rules only affects when a rule is triggered, which doesn't apply to our case since we are getting all events even if they don't trigger a rule.Please let me know if you have any other questions,Best regards,Jose
Thanks.
Will do, thanks Jose.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To post to this group, send email to wa...@googlegroups.com.
Visit this group at https://groups.google.com/group/wazuh.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/96817a84-a72d-4f79-a8e8-31a9ba5a9034%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/d4dae9fd-62c0-47bc-8fe6-bd7cb61acce1%40googlegroups.com.