Re: Solr logging in local time

2015-11-16 Thread Shawn Heisey
On 11/16/2015 9:04 AM, tedsolr wrote: > Is it possible to define a timezone for Solr so that logging occurs in local > time? My logs appear to be in UTC. Due to daylight savings, I don't think > defining a GMT offset in the log4j.properties files will work. I noticed this today when I upgraded fro

Re: Solr logging in local time

2015-11-16 Thread tedsolr
There is a property for timezone. Just set that in solr.in.sh and logging will use it. The default is UTC. SOLR_TIMEZONE="EST" -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-logging-in-local-time-tp4240369p4240434.html Sent from the Solr - User mailing list archive at

Re: Solr logging in local time

2015-11-16 Thread Alexandre Rafalovitch
The logging format is defined by log4j properties. Looking at Solr 5.3.1, we are using EnhancedPatternLayout, which apparently supports just putting the timezone in braces after the date format: http://stackoverflow.com/questions/9116425/apache-log4j-logging-with-specific-timezone I'd try that as

Re: Solr logging in local time

2015-11-16 Thread tedsolr
There are more than a dozen logging sources that are aggregated into Splunk for my application. Solr is only one of them. All the others are logging in local time. Perhaps there is a Splunk centric solution, but I would like to know what the alternatives are. Anyone know how to "fix" (as in define,

Re: Solr logging in local time

2015-11-16 Thread Walter Underwood
I’m sure it is possible, but think twice before logging in local time. Do you really want one day with 23 hours and one day with 25 hours each year? wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Nov 16, 2015, at 8:04 AM, tedsolr wrote: > > Is it