Hi Gays,
we have some troubles with server time and timestamp on the webpage, how can I change it?
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.
/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
Time zone
in their User Profile, or admin can change it also in System - Authentication - Users - Edit, field Time Zone
.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:
sudo vim /etc/graylog/server/server.conf
vim /etc/graylog/server/server.conf
root_timezone = Europe/Bratislava
sudo systemctl restart graylog.service
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
Thank you man! It was perfect!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.