[
https://issues.apache.org/jira/browse/SOLR-6673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14487336#comment-14487336
]
Shalin Shekhar Mangar commented on SOLR-6673:
---------------------------------------------
I committed a change to the default pattern for both console and file
appenders. I find it strange that we have two identical log4j.properties in
server/resources and example/resources. Does anyone know why? We should nuke
one of them.
This is what solr.log looks like in cloud mode:
{code}
INFO - 2015-04-09 13:11:02.583; [xyz shard1 core_node1 xyz_shard1_replica1]
org.apache.solr.core.SolrCore; [xyz_shard1_replica1] webapp=/solr path=/select
params={q=*:*&indent=true&wt=json&_=1428585062554} hits=0 status=0 QTime=19
{code}
And the following is the solr-8983-console.log
{code}
402422 [qtp2065530879-15] INFO org.apache.solr.core.SolrCore.Request [xyz
shard1 core_node1 xyz_shard1_replica1] – [xyz_shard1_replica1] webapp=/solr
path=/select params={q=*:*&indent=true&wt=json&_=1428585062554} hits=0 status=0
QTime=19
{code}
> MDC based logging of collection, shard etc.
> -------------------------------------------
>
> Key: SOLR-6673
> URL: https://issues.apache.org/jira/browse/SOLR-6673
> Project: Solr
> Issue Type: Improvement
> Reporter: Ishan Chattopadhyaya
> Assignee: Noble Paul
> Labels: logging
> Fix For: Trunk, 5.1
>
> Attachments: SOLR-6673-log-more.patch, SOLR-6673.patch,
> SOLR-6673.patch, SOLR-6673.patch, SOLR-6673.patch, SOLR-6673.patch,
> SOLR-6673.patch, SOLR-6673.patch, SOLR-6673.patch, SOLR-6673_NPE_fix.patch,
> log4j.properties, log4j.properties
>
>
> In cloud mode, the many log items don't contain the collection name, shard
> name, core name etc. Debugging becomes specially difficult when many
> collections/shards are hosted on the same node.
> The proposed solution adds MDC based stamping of collection, shard, core to
> the thread.
> See also: SOLR-5969, SOLR-5277
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]