This is an automated email from the ASF dual-hosted git repository.

gerlowskija pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new 0c1794915a7 SOLR-16582 : Docs for SolrCore 'marker' log filtering 
(#1735)
0c1794915a7 is described below

commit 0c1794915a70dda1cfd9fda2a0bb3847760a50ca
Author: patsonluk <[email protected]>
AuthorDate: Thu Jul 6 08:05:16 2023 -0700

    SOLR-16582 : Docs for SolrCore 'marker' log filtering (#1735)
---
 .../deployment-guide/pages/configuring-logging.adoc      | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git 
a/solr/solr-ref-guide/modules/deployment-guide/pages/configuring-logging.adoc 
b/solr/solr-ref-guide/modules/deployment-guide/pages/configuring-logging.adoc
index 0dca9a4fa9d..706ca0d9de9 100644
--- 
a/solr/solr-ref-guide/modules/deployment-guide/pages/configuring-logging.adoc
+++ 
b/solr/solr-ref-guide/modules/deployment-guide/pages/configuring-logging.adoc
@@ -172,6 +172,22 @@ The log file under which you can find all these queries is 
called `solr_slow_req
 In addition to the logging options described above, it's possible to log only 
a selected list of request parameters (such as those sent with queries) with an 
additional request parameter called `logParamsList`.
 See the section on 
xref:query-guide:common-query-parameters.adoc#logparamslist-parameter[logParamsList
 Parameter] for more information.
 
+== Selective Logging on SolrCore
+
+Solr logs all core requests at INFO level using the o.a.s.c.SolrCore.Request. 
This can be disabled entirely by changing the level of these loggers to WARN or 
ERROR, or more selectively by using the `MarkerFilter` on request paths in 
`log4j2.xml`.
+
+For example:
+
+[source,xml]
+----
+<Logger name="org.apache.solr.core.SolrCore.Request" level="info">
+  <Filters>
+    <MarkerFilter marker="/get" onMatch="DENY" onMismatch="NEUTRAL"/>
+    <MarkerFilter marker="/replication" onMatch="DENY" onMismatch="NEUTRAL"/>
+  </Filters>
+</Logger>
+----
+
 == Request Logging
 
 Every incoming HTTP(s) request is by default logged in the standard 
https://en.wikipedia.org/wiki/Common_Log_Format[`NCSA format`]

Reply via email to