How to apply timezone to Log4j2 RollingFile? - spring

There seems to be a bug in the past, hasn't it been fixed yet?
Even if a separate timezone is applied to my console log and file name, the actual rollover time is always the server time.
Is there any way to make this rollover time follow my timezone?

Related

Heroku Scheduler Add On UTC Timezone cannot be changed

I have been working on a project that needs to complete a task at a certain time everyday. I am using the 'free' Heroku Scheduler Add-on and the task is completed, but the problem is that it is not completed in the exact time I set for it to be completed because the scheduler has a default UTC time zone that won't change even if the time zone for app is changed. Also, if there are daylight savings time changes (since it is a UTC time zone) it won't recognize that change and will do the task at the wrong time. Is there anyway to change the time zone to my desired one which would be in US/Eastern?
I already looked at Heroku Scheduler timezone? and it seems to be the online place with any information on it, but there are no instructions on how to fix the issue. Any help would be greatly appreciated.
Heroku Scheduler Task Setup Image
You can not change Heroku Scheduler Add-on time zone, only solution is to move the time checking logic to your app, for example you have to run it each hour, then in your app/command check if the time is the correct time, if it's not exist the app until current time meet your requirements

Daily rolling log file in Websphere Liberty (16.0.0.4-WS-LIBERTY-CORE)

How to create a daily rolling log file in Websphere Liberty? I want the name of the log file to have YYYYMMDD format.
Currently I'm only able to limit the max file size, max file and a static naming of messages.log and disable consolelog.
<logging consoleLogLevel="OFF" maxFileSize="1" maxFiles="3" messageFileName="loggingMessages.log"/>
https://www.ibm.com/support/knowledgecenter/SSEQTP_8.5.5/com.ibm.websphere.wlp.doc/ae/rwlp_logging.html
WebSphere Liberty does not currently have the ability to schedule log file rotation like traditional WAS. You can request this feature using the RFE site.
Alternatively, you could use an approach like Bruce mentioned - perhaps using a cron job to restart the server at midnight.
You might also consider configuring Liberty's binary logging. This will create a binary log file that can be queried to produce actual log files (with filtering options, etc.). It does have some time-based options. More info here.
Hope this helps, Andy
Probably not the answer you want, but if you restart the server it will roll the log.

ElasticSearch 5.1.1 + Grafana 4.1.0 Time seems offset by UTC difference

I'm running Grafana 4.1.0_beta1 and Elasticsearch 5.1.1.
All my servers are setup for Mountain Time, I seem to be running into an issue where Grafana attempts to "account" for UTC, and offsets search parameters by 7 hours.
As an example;
date result from server; Wed Jan 4 20:10:54 MST 2017
But when I try to add and test a data source in Grafana, I get this error:
{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"metricbeat-2017.01.05","index_uuid":"_na_","index":"metricbeat-2017.01.05"}],"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"metricbeat-2017.01.05","index_uuid":"_na_","index":"metricbeat-2017.01.05"}
While metricbeat-2017.01.05 does not exist, metricbeat-2017.01.04 does as it should.
When on a dashboard, I don't see any data, until I set the time, to anything over 7h prior.
I didn't see anything regarding timezone in the elasticsearch, or grafana config files.
Am I missing something?
Classic case of over analyzing.
It looked like everything was correct because it was, except for my client timezone.
Correct Timezone on local client
Ensure time is updated correctly
Restart web browser
You should be able to time shift the data back into range by 7h by going into added panel widget -> Time range -> Add time shift.
--If nothing else works that is.

SonarQube: is it possible to change the time zone in the JVM parameters?

I have a machine that runs several different servers and it's in a specific time zone in Central Europe.
I need to run SonarQube (4.5.7) in UTC time.
I uncommented the following line in web/WEB-INF/config/environment.rb and restarted SonarQube but the server still shows the original time zone on the System Info page.
config.time_zone = 'UTC'
Should that be enough to change the time zone in SonarQube? Because that didn't really work.
Is there a way I can pass the user.timezone property to the JVM by editing the wrapper.conf file? Looks like it could work but it doesn't look like I'm supposed to touch that file.
Thanks.
Internal files, including web/**/*, must not be touched.
To change JVM timezone, you should edit conf/sonar.properties and add the value -Duser.timezone=Europe/Sofia to properties sonar.web.javaAdditionalOpts, sonar.ce.javaAdditionalOpts and sonar.search.javaAdditionalOpts.

Can I change time zone of ArangoDB's logs?

I live in Japan, so wanna change time zone of ArangoDB's logs from default to UTC+9:00.
Maybe I have to change somewhere of config files but I couldn't make sense.
The time zone is always GMT. You could open a feature request on github https://github.com/triAGENS/ArangoDB/issues maybe a config option can be added. But this needs to be checked.

Resources