You can change the timezone that Kibana uses to show the timestamp. For that, you can go to the left side of the browser, open Management and then go to Advanced settings and search for timezone. This will show the dateFormat:tz setting, where you can choose your desired timezone to match your Wazuh instance. Click on the Save button to apply your changes.
Restart Kibana and your Wazuh manager and this should be enough to change the timestamp field on your Kibana instance to match your Wazuh alerts.
Maybe you will need to refresh your cache too.
Let us know if you have more questions.






For example, If I have a simple rule triggers an alert if the log contains a time (predecoder.timestamp) between 6 pm - 8:30 am as follows:
<rule id="100127" level="10">
<decoded_as>test</decoded_as>
<time>6 pm - 8:30 am</time>
<description>Login outside business hours.</description>
<group>policy_violation</group>
</rule>
I need Wazuh when it tests this mentioned time criteria to look at the time of predecoder.timestamp Not the timestamp as the two samples
Thank you dear for your answer.
Regarding the mentioned rule, it didn't work also for the following scenario:
I edited ossec.conf file to instruct Wazuh to read SSH logs from a specific directory:
<localfile> /var/log/ssh_logs.log</localfile>
Then, I put the following SSH logs into /var/log/ssh_logs.log (the logs isn’t coming from a direct SSH connection).
The predecoder.timestamp of these logs are scattered within two hours. Unfortunately, the rule triggers in spite of timeframe is more than 120 seconds as specified within the rule
Aug 11 09:13:38 sshd[2983]: Failed password for root from 192.168.1.1 port 49229 ssh2
Aug 11 09:23:38 sshd[2983]: Failed password for root from 192.168.1.1 port 49229 ssh2
Aug 11 09:33:38 sshd[2983]: Failed password for root from 192.168.1.1 port 49229 ssh2
Aug 11 09:43:38 sshd[2983]: Failed password for root from 192.168.1.1 port 49229 ssh2
Aug 11 09:53:38 sshd[2983]: Failed password for root from 192.168.1.1 port 49229 ssh2
Aug 11 10:05:38 sshd[2983]: Failed password for root from 192.168.1.1 port 49229 ssh2
Aug 11 10:15:38 sshd[2983]: Failed password for root from 192.168.1.1 port 49229 ssh2
Aug 11 10:25:38 sshd[2983]: Failed password for root from 192.168.1.1 port 49229 ssh2
Please advise.
