lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matteo Grolla <matteo.gro...@gmail.com>
Subject Re: query logging using query rest api
Date Mon, 02 May 2016 09:21:25 GMT
Hi Vincenzo,
         you're right -XGET shouldn't be there but curl is smart enough to
ignore it so nothing changes eliminating it, tested.

2016-04-28 11:28 GMT+02:00 Vincenzo D'Amore <v.damore@gmail.com>:

> Hi Matteo,
>
> there is a problem in your curl test: as far as I know you cannot use GET
> HTTP method ( -XGET ) and pass parameters in POST (-d).
>
> Try to remove the -XGET parameter.
>
> On Thu, Apr 28, 2016 at 11:18 AM, Matteo Grolla <matteo.grolla@gmail.com>
> wrote:
>
> > Hi,
> >     I'm experimenting the query rest api with solr 5.4 and I'm noticing
> > that query parameters are not logged in solr.log.
> > Here are query and log line
> >
> > curl -XGET 'localhost:8983/solr/test/query' -d '{"query":"*:*"}'
> >
> > 2016-04-28 09:16:54.008 INFO  (qtp668849042-17) [   x:test]
> > o.a.s.c.S.Request [test] webapp=/solr path=/query params={} hits=32
> > status=0 QTime=46
> >
> > Why this behaviour? How can I log request parameters for those queries?
> > Thanks
> >
> > Matteo
> >
>
>
>
> --
> Vincenzo D'Amore
> email: v.damore@gmail.com
> skype: free.dev
> mobile: +39 349 8513251
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message