wazuh-dashboard-plugins icon indicating copy to clipboard operation
wazuh-dashboard-plugins copied to clipboard

Mismatch in Timestamps Between ossec.log on Server and Web Interface

Open sakib789 opened this issue 11 months ago • 2 comments

Wazuh version Component Install type Install method Platform
4.7.3 - Manager - Ubuntu22.04

Dear Team,

While working with this community, I've observed a notable time variance between the timestamps recorded in the ossec.log on the server and those displayed in the web interface for the same log.

Firstly, when accessing the ossec.log directly on the server at /var/ossec/log/ossec.log, I'm able to view the logs in real-time, as depicted in the accompanying image. image

Furthermore, I've also explored accessing logs in real-time via API requests from both the server and the web interface(API Console), as illustrated in the provided images. image image

My Wazuh server is configured to record logs in local time. image

Despite my attempts to align the time settings on the web interface with both browser time and local time, I consistently encounter a discrepancy where the timestamps displayed for ossec.log in the web interface appear to be ahead of my local time, regardless of whether it's in UTC or local time. image

I kindly request your assistance in investigating and sharing your insights into this matter.

sakib789 avatar Mar 27 '24 05:03 sakib789

It seems the issue is resolved in the latest version(4.8.1) image

sakib789 avatar Aug 19 '24 08:08 sakib789

I am running Wazuh Manager v4.8.2 and my agents are also v4.8.2, but I'm still seeing the timestamp discrepancy.

dashboard_logs ossec_log

The timestamps shown on the dashboard are 2 hours in the future: image_2024-09-02_113318344

@sakib789 did you do anything else to get these timestamps the same?

Antyrael avatar Sep 02 '24 09:09 Antyrael