How to log full URL using Jetty RequestLogHandler in Solr 7

2018-11-07 Thread dimaf
After migration from Solr 6 to Solr 7, Jetty RequestLogHandler logs only the
path and parameters of URL instead of saving full URL as it does in Solr 6.

Solr 6:
127.0.0.1 - - [07/Nov/2018:09:34:27 -0700] "GET
//localhost:/solr/admin/collections?action=CLUSTERSTATUS&wt=json
HTTP/1.1" 200 3088 

Solr 7:
127.0.0.1 - - [07/Nov/2018:08:36:13 -0700] "GET
/solr/admin/collections?action=CLUSTERSTATUS&wt=json HTTP/1.1" 200 820 "-"
"monitor/1.0.1"

On each host, several Solr instances are run and all of them save requests
into one file. I am not sure that it is the best practice...

So the question is how Jetty/Solr can be configured to log full URL?

Thanks!



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Re: How to log full URL using Jetty RequestLogHandler in Solr 7

2018-11-07 Thread dimaf
Shawn, thanks a lot. 



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Re: How to log full URL using Jetty RequestLogHandler in Solr 7

2018-11-08 Thread dimaf
Yes, jetty.xml looks the same for Solr 6 and Solr 7, no difference for the
log request section:

diff ~dbl/solr/solr-6.6.0/server/etc/jetty.xml
~dbl/solr/solr-7.4.0/server/etc/jetty.xml 
45c45
< 
---
>  name="solr.jetty.threads.idle.timeout" default="12"/>
107a108,115
>
>  
> class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
>  /api/*
>  /solr/v2
>
>  
>
154c162
< false
---
> true

Thanks,
Dmitry.



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Solr CDCR doesn't work if the authentication is enabled

2018-02-14 Thread dimaf
I set up CDCR in my test environment and it worked perfectly until I uploaded
security.json files to Zookeeper clusters of a Target and a Source
SolrClouds. security.json files are identical for both Clouds as well as
collections name.
The Source has the next errors:

org.apache.solr.client.solrj.impl.CloudSolrClient$RouteException: Error from
server at http://target_node:port/solr/col01_shard1_replica1: Expected mime
type application/octet-stream but got text/html. 
...
Error 401 Unauthorized request, Response code: 401

Any idea how should I fix it?
Thanks!




--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Re: Solr CDCR doesn't work if the authentication is enabled

2018-03-05 Thread dimaf
To resolve the issue, I added names of Source node to /live_nodes of Target.
https://stackoverflow.com/questions/48790621/solr-cdcr-doesnt-work-if-the-authentication-is-enabled

  



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html