Skip to content

Commit

Permalink
Merged in r2-2630-improve-regexfilter-for-FatalLogFile (pull request …
Browse files Browse the repository at this point in the history
…#6516)

R2-2630 - Trigger Solr restarts on errors
  • Loading branch information
aespinoza-quoin authored and pnabutovsky committed Sep 27, 2023
2 parents eed39f1 + 019f692 commit 6d7c3b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/solr/root/var/solr/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</Console>

<File name="FatalLogFile" fileName="/opt/logs/fatal.log">
<RegexFilter regex=".*(Resource temporarily unavailable).*" onMatch="ACCEPT" onMismatch="DENY"/>
<RegexFilter regex=".*(Resource temporarily unavailable|Server error writing document id|IndexWriter is closed).*" onMatch="ACCEPT" onMismatch="DENY"/>
<PatternLayout>
<Pattern>
%maxLen{%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%notEmpty{ =>%ex{short}}}{10240}%n
Expand Down Expand Up @@ -55,7 +55,7 @@
<AsyncLogger name="org.apache.hadoop" level="warn"/>
<AsyncLogger name="org.apache.solr.update.LoggingInfoStream" level="off"/>
<AsyncLogger name="org.apache.zookeeper" level="warn"/>

<AsyncLogger name="org.apache.solr.servlet.HttpSolrCall" level="info">
<MarkerFilter marker="org.apache.solr.handler.admin.MetricsHandler" onMatch="DENY" onMismatch="ACCEPT"/>
</AsyncLogger>
Expand Down

0 comments on commit 6d7c3b2

Please sign in to comment.