-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Running solr 9 in docker for the integration tests that ran it in jet…
…ty, since it was failing to start. Add solr logging config
- Loading branch information
Showing
8 changed files
with
127 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one or more | ||
contributor license agreements. See the NOTICE file distributed with | ||
this work for additional information regarding copyright ownership. | ||
The ASF licenses this file to You under the Apache License, Version 2.0 | ||
(the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
|
||
<!-- Default production configuration is asnychronous logging --> | ||
<Configuration> | ||
<Appenders> | ||
|
||
<Console name="STDOUT" target="SYSTEM_OUT"> | ||
<PatternLayout> | ||
<Pattern> | ||
%maxLen{%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p (%t) [%notEmpty{c:%X{collection}}%notEmpty{ s:%X{shard}}%notEmpty{ r:%X{replica}}%notEmpty{ x:%X{core}}%notEmpty{ t:%X{trace_id}}] %c{1.} %m%notEmpty{ =>%ex{short}}}{10240}%n | ||
</Pattern> | ||
</PatternLayout> | ||
</Console> | ||
|
||
<RollingRandomAccessFile | ||
name="MainLogFile" | ||
fileName="${sys:solr.log.dir}/solr.log" | ||
filePattern="${sys:solr.log.dir}/solr.log.%i" > | ||
<PatternLayout> | ||
<Pattern> | ||
%maxLen{%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p (%t) [%notEmpty{c:%X{collection}}%notEmpty{ s:%X{shard}}%notEmpty{ r:%X{replica}}%notEmpty{ x:%X{core}}%notEmpty{ t:%X{trace_id}}] %c{1.} %m%notEmpty{ =>%ex{short}}}{10240}%n | ||
</Pattern> | ||
</PatternLayout> | ||
<Policies> | ||
<OnStartupTriggeringPolicy /> | ||
<SizeBasedTriggeringPolicy size="32 MB"/> | ||
</Policies> | ||
<DefaultRolloverStrategy max="10"/> | ||
</RollingRandomAccessFile> | ||
|
||
<RollingRandomAccessFile | ||
name="SlowLogFile" | ||
fileName="${sys:solr.log.dir}/solr_slow_requests.log" | ||
filePattern="${sys:solr.log.dir}/solr_slow_requests.log.%i" > | ||
<PatternLayout> | ||
<Pattern> | ||
%maxLen{%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p (%t) [%notEmpty{c:%X{collection}}%notEmpty{ s:%X{shard}}%notEmpty{ r:%X{replica}}%notEmpty{ x:%X{core}}%notEmpty{ t:%X{trace_id}}] %c{1.} %m%notEmpty{ =>%ex{short}}}{10240}%n | ||
</Pattern> | ||
</PatternLayout> | ||
<Policies> | ||
<OnStartupTriggeringPolicy /> | ||
<SizeBasedTriggeringPolicy size="32 MB"/> | ||
</Policies> | ||
<DefaultRolloverStrategy max="10"/> | ||
</RollingRandomAccessFile> | ||
|
||
</Appenders> | ||
<Loggers> | ||
<!-- Use <AsyncLogger/<AsyncRoot and <Logger/<Root for asynchronous logging or synchonous logging respectively --> | ||
<AsyncLogger name="org.apache.hadoop" level="warn"/> | ||
<AsyncLogger name="org.apache.solr.update.LoggingInfoStream" level="off"/> | ||
<AsyncLogger name="org.apache.zookeeper" level="warn"/> | ||
<!-- HttpSolrCall adds markers denoting the handler class to allow fine grained control, metrics are | ||
very noisy so by default the metrics handler is turned off to see metrics logging set DENY to ACCEPT --> | ||
<AsyncLogger name="org.apache.solr.servlet.HttpSolrCall" level="info"> | ||
<MarkerFilter marker="org.apache.solr.handler.admin.MetricsHandler" onMatch="DENY" onMismatch="ACCEPT"/> | ||
</AsyncLogger> | ||
<AsyncLogger name="org.apache.solr.core.SolrCore.SlowRequest" level="info" additivity="false"> | ||
<AppenderRef ref="SlowLogFile"/> | ||
</AsyncLogger> | ||
<AsyncLogger name="org.eclipse.jetty.deploy" level="warn"/> | ||
<AsyncLogger name="org.eclipse.jetty.webapp" level="warn"/> | ||
<AsyncLogger name="org.eclipse.jetty.server.session" level="warn"/> | ||
|
||
<AsyncRoot level="info"> | ||
<AppenderRef ref="MainLogFile"/> | ||
<AppenderRef ref="STDOUT"/> | ||
</AsyncRoot> | ||
</Loggers> | ||
</Configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters