Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple query logging for debugging #3041

Closed
wants to merge 1 commit into from
Closed

Simple query logging for debugging #3041

wants to merge 1 commit into from

Conversation

jprante
Copy link
Contributor

@jprante jprante commented May 16, 2013

Hi Elasticsearch team,
some users want simple query logging, so I added some debug statements. By adding a line "search: DEBUG" in logging.yml, the node requested should output some information about query execution and the JSON source.

@nurikabe
Copy link

+1

6 similar comments
@dbaq
Copy link

dbaq commented Jan 30, 2014

👍

@thomax
Copy link

thomax commented Mar 7, 2014

+1

@sbourke
Copy link

sbourke commented Mar 11, 2014

+1

@gugat
Copy link

gugat commented Mar 17, 2014

+1

@endofunky
Copy link

+1

@mbeteta
Copy link

mbeteta commented Apr 10, 2014

+1

@bigerock
Copy link

where should we put that in the logging.yml file? and where does it log to?

@brusic
Copy link
Contributor

brusic commented May 16, 2014

@bigerock This issue is a pull request, so it is not yet (if ever) incorporated into Elasticsearch.

@bigerock
Copy link

thanks @brusic. i just had realized that. doh! if i understood compiling java i suppose i could download the changed files and merge and compile them?

@brusic
Copy link
Contributor

brusic commented May 16, 2014

The pull request at this point a year old and based on the 1.0.0.Beta1-SNAPSHOT branch. There might be some merge conflicts. You could checkout Jorg's fork and try to merge the branch and see what happens!

Another option is to enable slow logs and basically set the threshold to 0ms: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/index-modules-slowlog.html

@bigerock
Copy link

thanks - that enable slow logs is much easier. very much appreciated!!

@clintongormley
Copy link

Hi @jprante

Thanks for this PR. We've talked about it and, given that the slow log will log all queries if the threshold is zero, all of the clients provide client-side query logging, and the fact that we have a query profiler in the works #6699, we've decided not to include this change.

@shikhar
Copy link
Contributor

shikhar commented Nov 20, 2015

https://github.com/etsy/es-restlog is a plugin for logging requests that might be useful for folks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet