# Diferent Timestamp Webpage and server

**URL:** <https://community.graylog.org/t/diferent-timestamp-webpage-and-server/13511>\
**Category:** Graylog Central (peer support)\
**Created:** [January 16, 2020, 9:50pm UTC](https://community.graylog.org/t/diferent-timestamp-webpage-and-server/13511 "2020-01-16T21:50:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![vitorhugot](https://avatars.discourse-cdn.com/v4/letter/v/90db22/32.png) [@vitorhugot](https://community.graylog.org/u/vitorhugot)\
**Post date:** [January 16, 2020, 9:50pm UTC](https://community.graylog.org/t/diferent-timestamp-webpage-and-server/13511/1 "2020-01-16T21:50:30Z")

</div>

Hi Gays,

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

---

<div class="post-metadata">

**Author:** ![shoothub](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/shoothub/32/6412_2.png) [@shoothub](https://community.graylog.org/u/shoothub)\
**Post date:** [January 17, 2020, 8:34am UTC](https://community.graylog.org/t/diferent-timestamp-webpage-and-server/13511/2 "2020-01-17T08:34:57Z")

</div>

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](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](https://docs.graylog.org/en/3.1/pages/users_and_roles/users.html#timezone)

---

<div class="post-metadata">

**Author:** ![vitorhugot](https://avatars.discourse-cdn.com/v4/letter/v/90db22/32.png) [@vitorhugot](https://community.graylog.org/u/vitorhugot)\
**Post date:** [January 17, 2020, 1:43pm UTC](https://community.graylog.org/t/diferent-timestamp-webpage-and-server/13511/3 "2020-01-17T13:43:50Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![shoothub](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/shoothub/32/6412_2.png) [@shoothub](https://community.graylog.org/u/shoothub)\
**Post date:** [January 17, 2020, 1:58pm UTC](https://community.graylog.org/t/diferent-timestamp-webpage-and-server/13511/4 "2020-01-17T13:58:26Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![vitorhugot](https://avatars.discourse-cdn.com/v4/letter/v/90db22/32.png) [@vitorhugot](https://community.graylog.org/u/vitorhugot)\
**Post date:** [January 17, 2020, 2:29pm UTC](https://community.graylog.org/t/diferent-timestamp-webpage-and-server/13511/5 "2020-01-17T14:29:07Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![shoothub](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/shoothub/32/6412_2.png) [@shoothub](https://community.graylog.org/u/shoothub)\
**Post date:** [January 17, 2020, 2:40pm UTC](https://community.graylog.org/t/diferent-timestamp-webpage-and-server/13511/6 "2020-01-17T14:40:43Z")

</div>

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](https://docs.graylog.org/en/2.5/pages/installation/virtual_machine_appliances.html#basic-configuration)

---

<div class="post-metadata">

**Author:** ![vitorhugot](https://avatars.discourse-cdn.com/v4/letter/v/90db22/32.png) [@vitorhugot](https://community.graylog.org/u/vitorhugot)\
**Post date:** [January 17, 2020, 4:34pm UTC](https://community.graylog.org/t/diferent-timestamp-webpage-and-server/13511/7 "2020-01-17T16:34:20Z")

</div>

Thank you man! It was perfect!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [January 31, 2020, 4:34pm UTC](https://community.graylog.org/t/diferent-timestamp-webpage-and-server/13511/8 "2020-01-31T16:34:26Z")

</div>

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