With the introduction of Neo4j 3.3.1 it is possible to represent date timestamps in
your $NEO4J_HOME/logs/* in either UTC or SYSTEM timezone through the implementation of
However for prior releases all Neo4j logs will preface each line with a date/time string of the format
where the +0000 above indicates the date/time is expesssed in UTC format. Logging in UTC is helpful for analysis when a cluster is defined with members in different timezones. However when cluster members are in the same timezone or you are running a single instance you may want to log in local timezone. There is a pending product improvement to request the date/time string be configurable based upon timezone.
In the absence of this feature, one can run the following Perl script to convert any file from UTC timezone to the machine timezone where the perl script is run.
For most Unix implementations to determine the timezone, if one runs
this will return output similar to
indicating the EST timezone.
To convert a log from UTC to EST run
To install the script, copy the following lines from here to a file named
utc.pl on your linux server.
Make the script executable by running
Run the script as
<log file> with a filename.
With Neo4j 3.3 and as a result of PR 10127 the timestamp timezone can be configured through