Diferent Timestamp Webpage and server

Hi Gays,

we have some troubles with server time and timestamp on the webpage, how can I change it?

Graylog saves all dates in UTC format, and shows it in GUI in timezone configured for particular user.

  1. For user admin, it uses timezone defined in /etc/graylog/server/server.conf file, parameter root_timezone.
    root_timezone = Europe/Bratislava

Change Europe/Bratislava to your real timezone, and restart graylog server.
https://docs.graylog.org/en/3.1/pages/configuration/server.conf.html#general

  1. For other user accounts other than admin, configuration is done in GUI. Every user can change their Time zone in their User Profile, or admin can change it also in System - Authentication - Users - Edit, field Time Zone.
    https://docs.graylog.org/en/3.1/pages/users_and_roles/users.html#timezone

Sorry, I’m intrant in graylog. I Cant find the file server.conf path using ubuntu and root user, and admin user do not appear at etc/passwd so I can’t login with admin user on cli command.

My user admin is default!

Could you explain how can I change time zone for admin user on webpage?

Thanks!

You can’t change Time Zone for admin user through web interface. You have to edit graylog configuration file server.conf which is by default on ubuntu in path:
/etc/graylog/server/server.conf

https://docs.graylog.org/en/3.1/pages/installation/os/ubuntu.html#graylog

I must admin, it’s a little confusing, but graylog web interface user admin uses parameter root_timezone to setup timezone.

So try follow these steps:

  1. Login as user ubuntu or root to linux console:
  2. Edit file server.conf using your favourite editor:
    a. if you’ve logged in as ubuntu user, you probably must use sudo
    sudo vim /etc/graylog/server/server.conf
    b. if you’ve logged in as root user use command:
    vim /etc/graylog/server/server.conf
  3. Find parameter root_timezone and change Europe/Bratislava to your real timezone:
    root_timezone = Europe/Bratislava
  4. Save file with: press Esc, type :wq and press Enter
  5. Restart graylog service with:
    sudo systemctl restart graylog.service
  6. Done

Thank you so much for your instructions, but my graylog does not have this path and file as you can see bellow:

path /etc/graylog/server/server.conf

When I looking for server directory I cant’t find him.

root@auhsu:/etc/graylog# ls -la
total 20
drwxrwxr-x 2 root root 4096 Jul 16 2019 .
drwxr-xr-x 86 root root 4096 Jul 29 10:33 …
-rw------- 1 root root 330 Jul 29 09:02 graylog-secrets.json
-rw-r–r-- 1 root root 211 Jul 29 09:02 graylog-services.json
-rw-r–r-- 1 root root 711 Jul 29 09:02 graylog-settings.json

The version is Graylog 2.5.1+34194da, it’s necessary performe some command to update or create the server.conf manualy?

Thnak you more one time!

This is quite old version, probably OVA so, you have to use graylog-ctl command:
sudo graylog-ctl set-timezone

https://docs.graylog.org/en/2.5/pages/installation/virtual_machine_appliances.html#basic-configuration

Thank you man! It was perfect!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.