Hello Suat,
My recommendation here would be to enable the “logall” parameter in the /var/ossec/etc/ossec.conf file (See https://documentation.wazuh.com/3.12/user-manual/reference/ossec-conf/global.html#logall), then, restart the manager and check the /var/ossec/logs/archives/archives.json to see if it contains any of your desired logs.
If /var/ossec/logs/archives/archives.json contains your logs, disable logall, that means that the manager is analyzing your logs but not generating alerts. Is important to disable logall because it makes your manager to store lot of information and can make it to fill yoru disk quickly.
You won’t have any log in Kibana, Kibana only store alerts generated by logs analyzed by Wazuh. Wazuh need to decode the log with certain decoder and it must match any rule of our ruleset in order to generate alerts. You have more information about how this work here: https://documentation.wazuh.com/3.12/user-manual/capabilities/log-data-collection/how-it-works.html
In order to easily check if your logs would generate alerts, I recommend using the ossec-logtest utility (See https://documentation.wazuh.com/3.11/user-manual/reference/tools/ossec-logtest.html)
/var/ossec/bin/ossec-logtest`
If you paste some logs in the console after executing that command, the logs will be analyzed and you will know if they can be decoded with any available decoder and if they match any rule.
If your log is not being processed by any decoder or doesn’t match any rule, you need to write your own custom rules or decoders for it. Read this for further information: https://documentation.wazuh.com/3.12/user-manual/ruleset/custom.html
--
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/9f284df5-da09-4d78-a17a-0697d9d869c1%40googlegroups.com.
--
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/28f2d877-c853-4c9a-982d-5bcf2500efac%40googlegroups.com.
netstat -tunap | grep 514
udp 0 0 0.0.0.0:514 0.0.0.0:* 8821/ossec-remoted
--
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/15158195-5a42-4358-b32a-c7c668442228%40googlegroups.com.
I mean that everything seems to be correct in your configuration, I would like you, after activating the logall parameter as I mentioned (and having restarted the manager), to wait a few minutes and check the content of the /var/ossec/logs/archives/archives.json file and share it with us to make sure it doesn’t fail.
I would also like you to try to modify the agent configuration so that the allowed_ips field contains exactly the firewall IP, just to check that there are no networking problems related to the use of 0.0.0.0/0.
Best regards.
--
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/1499ef97-2f15-46ce-b0fa-556664dd0286%40googlegroups.com.
Hello Suat,
My fault, there are two different parameters available in the Wazuh configuration, logall and logall_json, I should have told you to use the second one or check archives.log, I was confused when I told you.
Remember to disable logall to avoid disk usage issues.
Regarding your second question, as I said, Kibana will only store alerts generated by Wazuh. You shared this:
**Phase 2: Completed decoding.
No decoder matched.
**Phase 3: Completed filtering (rules).
Rule id: '1002'
Level: '2'
Description: 'Unknown problem somewhere in the system.'
That mean, your logs are not being correctly decoded and they match a level 2 rule (only alerts with level 3 or higher will generate alerts)
You have various options here. My recomendation would be to write a custom decorder to match your logs format and a custom rule to generate alerts for them.
Here you have more information about custom rules and decoders: https://documentation.wazuh.com/3.12/user-manual/ruleset/custom.html
Another option would be defining a smaller alert level threshold: https://documentation.wazuh.com/3.12/user-manual/manager/alert-threshold.html for example, set it to 1 would make your current alert ‘unknown problem somewhere in the system’ to reach KIbana, but I don’t recommend this option, I encourage you to make at least a simple decoder for your logs and a simple rule common for all the logs decoded with that decoder. Then you will be able to create child rules for specific logs to generate interesting alerts.
I hope that help you, if you want to create custom rules and decoders and need help Ia encorauge you to open a new different thread in the forum or ask us in our slack channel.
If you have further question related with this topic do not hesitate to keep asking in this thread.
Best regards.

--
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/6e500f55-81e3-4e59-821b-97e2c8bbec30%40googlegroups.com.
1 2020-04-03T12:40:17+03:00 sslvpn.test.com PulseSecure: - - - 2020-04-03 12:40:17 - NODE1 - [18.133.320.333] test00001'(Users)[SSLVPNTEST1] - Host Checker policy 'SSLVPMODE1' failed on host '718.273.230.333' address 'w8-w2-w6-wa-wa-w1' for user 'test00001' reason 'Rule-ANTIVURUS:Anti-Virus software listed in security requirements is not installed.;Rule-DomainMember:Registry value mismatch for configured key, found='
<decoder name="example"><prematch>^1 2020</prematch></decoder><decoder name="example-fields"><parent>example</parent><prematch>status</prematch><regex offset="after_prematch">\w\w\w\w\d\d\d\d\d</regex><order>status</order></decoder>
<group name="local,example,"><rule id="100005" level="3"><decoded_as>example</decoded_as><match>Anti-Virus software listed in security requirements is not installed</match><description> SSLVPN Antivirus not Installed</description></rule></group>
--
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/407d14bb-6320-4387-bcd5-d988fd4923ad%40googlegroups.com.
Hello Suat, sorry for the late answer, I thought I had already answered you.
Your problem is that ^ in the first decoder:
<decoder name="example">
<prematch>^1 2020</prematch>
</decoder>
Just remove it and write it like
<decoder name="example">
<prematch>^1 2020</prematch>
</decoder>
And it should work!
I think that the problem is that ^ doesn’t work well with numbers… you could use it with string words but not with that 1
Best regargs,