Hi pisa_suave,
Good Day!
If you check the /var/ossec/etc/localtime file, you will see Wazuh's manager uses universal time as configured by default.
To change the Wazuh's manager's time to local time.
First update the timezone of the server. You can use the timedatectl command to update timezone
Find your timezone
timedatectl list-timezones
Next, set your timezone similar to this.
timedatectl set-timezone 'Asia/Dhaka'
Check updated timezone
timedatectl
Next, reboot the server
reboot
Next, follow the below steps.
First, stop the manager
systemctl stop wazuh-manager
1. Move the /var/ossec/etc/localtime file to keep a backup of the configuration:
mv /var/ossec/etc/localtime /var/ossec/etc/localtime.bak
2. Copy the /etc/localtime file of the require time to /var/ossec/etc/localtime:
cp /etc/localtime /var/ossec/etc/localtime
3. Check the ownership of the file should be root:wazuh.
chown root:wazuh localtime
Next, restart the manager
systemctl restart wazuh-manager
Let me know if this solves your issue.
--
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/ENjD6xGBu6o/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/42b0690e-3503-4939-a574-62429b56732fn%40googlegroups.com.