Hi guys , im new using graylog.
Im trying the tool from a docker container , I would like to do some tests before moving to real server.
I followed the documented steeps using docker-compose.
I managed to receive standard messajes.
Now , timestamp on received messages are not ok.
Any idea how to fix it ?
I can access to server cli using portainer cli but have not persmission to run date command.
btw: time stamp on local device is ok.
Regards.
Leandro.
First you need to understand the root cause and based on that you can develop solution.
What does it mean “not ok”?
Is it about incorrect timezone? Incorrect local time in container? Incorrect graylog local time?
Ok, date is ok.
Time it is not ok.
Is it possible that timezone is not ok but, I dont know how to check it from command line neither web.
For example , I can see a line like:
|2019-09-23 15:55:35.589|38.11X.11.1|
| — | — | |system,info,account user admintecnet logged in from 1x8.111.16.11 via winbox|
And proper time should be 12:55:35 , so it is 4 hours ahead.
Please ifyou can provide how to check timezone, would be great:
I can see this:
graylog@907d6bcb03ec:~$ cat /etc/timezone
Etc/UTC
But not what to do with it.
Regards.
Hi zoulja: yes , I have graylog running on docker container.
Here I will post my time:
On graylog container:
graylog@907d6bcb03ec:~$ date -R
Tue, 24 Sep 2019 13:12:05 +0000
On host (centos 7, time os ok here).
[root@dockers ~]# date -R
Tue, 24 Sep 2019 10:12:08 -0300
Container system: Can not find how to check it on docker system.
BTW: I can not write on /etc/timezone directyl on cli,
Also tried restarting container.
the question is more - how do you ingest from your device to Graylog?
To be fair, your timestamp does not include a proper timezone and Graylog will take this timestamp as UTC because that is where it defaults to when no timezone is given.