Hi!Unfortunately, the Wazuh pre-decoder does not yet support Unix Epoch tImestamps.Have you created your own rules and decoders to process this log? In the case you did, please, can you share it with us? So we can help you decode the timestamp.I will be waiting for your reply,Mariano Koremblum
On Monday, May 2, 2022 at 9:49:26 AM UTC-3 utk...@null.co.in wrote:Hi Community,Can Wazuh read and decode Unix Epoch Timestamp.If yes how to do that ?I am trying to ingest some logs which are having epoch timestamp and due to that I am facing some unknown error.here's the sample log :1651494502.077973527 HQ2_BLR events content_filtering_block url='https://play.google.com/...' category0='Shopping' server='172.217.160.238:443' client_mac='CC:15:31:CD:EC:6D'Bold and italic numbers are epoch timestamp.thanks and 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/7ac63aec-9913-4dbc-ad36-09a89400360dn%40googlegroups.com.
I think the problem is located in the first decoder.
You have this:
<decoder name="cisco_meraki">
<prematch>\d \d+.\d+ \S+</prematch>
</decoder>
But your log does not start with a single integer followed by a space. So the correct form would be:
<decoder name="cisco_meraki">
<prematch>^\d+.\d+ \S+</prematch>
</decoder>
I hope my answer helps you!
Best regards,
Mariano Koremblum
Always remember that you can test your custom rules and decoders by using the wazuh-logtest tool. Here there are some links of interest related to it:
Best Regards!
I think the problem is located in the first decoder.You have this:<decodername="cisco_meraki">
<prematch>\d \d+.\d+ \S+</prematch></decoder>But your log does not start with a single integer followed by a space. So the correct form would be:<decodername="cisco_meraki">
<prematch>^\d+.\d+ \S+</prematch></decoder>I hope my answer helps you!Best regards,Mariano Koremblum
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/bdd38896-0c89-4c2f-ad8a-3c224836b683n%40googlegroups.com.
Always remember that you can test your custom rules and decoders by using thewazuh-logtesttool. Here there are some links of interest related to it:
Best Regards!
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/a8423913-9222-4c8d-b932-5d57ad07f1fan%40googlegroups.com.
Hi again!Where are you receiving such error messages?
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/1239b30b-7c7a-40e7-8bef-573b143bdf91n%40googlegroups.com.
Hi Utkarsh,I don't think these errors are related to the decoders at all.When you say you are seeing these error logs in Kibana, do you mean that such errors are displayed as any other log on the website or the service does not start and throws such messages? If you can explain better the problem and give us more information we will be able to help you faster and better. If you can also provide screenshots, it might help to understand better what it is going on.I will be waiting for your reply.Mariano
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/bb394123-9c83-428e-ab1c-236e62a01a36n%40googlegroups.com.
Dear Utkarsh,
The logall option logs every single log that passes through the manager on the archives files, not only the alerting-level ones (logs of relevance) which are logged to the alerts files, as it is explained here: https://documentation.wazuh.com/current/user-manual/capabilities/log-data-collection/how-it-works.html#alert.
You usually should not worry about this kind of log if the rest of the programs (Wazuh, Kibana and such) are functioning well, as they might just be some expected runtime events. You do need to take care of them if you realize that something is not working as expected.
Please, let us know if you still need help with this.
Mariano
Dear Utkarsh,Thelogalloption logs every single log that passes through the manager on thearchivesfiles, not only the alerting-level ones (logs of relevance) which are logged to thealertsfiles, as it is explained here: https://documentation.wazuh.com/current/user-manual/capabilities/log-data-collection/how-it-works.html#alert.You usually should not worry about this kind of log if the rest of the programs (Wazuh, Kibana and such) are functioning well, as they might just be some expected runtime events. You do need to take care of them if you realize that something is not working as expected.Please, let us know if you still need help with this.Mariano
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/449e7e70-979a-49d3-ac4a-c95669194a82n%40googlegroups.com.
Well no, that is exactly the two possible ways of collecting logs. I would recommend you create your own rules to trigger alerts related to Cisco Meraki, as using the logall option may result in a lot of disk usage. To do so, please take a look at the following links:
If you need help building your custom rules, you can always create a new thread to receive our free support.
I hope my answer helps you! Best regards,
Mariano Koremblum