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

Remove GET /_log documentation (endpoint deprecated) #779

Closed
olivenvrac opened this issue Aug 28, 2017 · 7 comments
Closed

Remove GET /_log documentation (endpoint deprecated) #779

olivenvrac opened this issue Aug 28, 2017 · 7 comments

Comments

@olivenvrac
Copy link

Expected Behavior

I want to read the log with the URL of the server, but it doesn't work
can anybody else give me a solution or can telle me wht's wrong in my conf or URL or anything else ?

Current Behavior

when i send a get on the url : https://user:mdp@serveur:port/_log
have got this return :
{"error":"not_found","reason":"Database does not exist."}

I tried with the node :
https://user:mdp@serveur:port/_node/nodename/_log
have got this return :
{"error":"not_found","reason":"missing"}

Context

the log file "couchdb.log" is OK and the messages are writting correctly in it.
the rights on the log seems to be good : -rwxr-x---
configuration in the .ini file is :
[log]
file = ./var/log/couchdb.log
writer = file

Your Environment

Version CouchDB : 2.0.0
OS : RHEL 7
client : Curl 7.19.7

@wohali
Copy link
Member

wohali commented Aug 29, 2017

I believe this endpoing moved to the /_node/<nodename>/_log endpoint. Your nodename will depend on the -name setting in your vm.args file.

@wohali wohali closed this as completed Aug 29, 2017
@wohali wohali changed the title GET /_log does not work GET /_log documentation needs updating Aug 29, 2017
@olivenvrac
Copy link
Author

Thank's for the reply wohali.
I thought the same thing, but it doesn't work either with this path :
https://user:mdp@serveur:port/_node//_log
i got the nodename in the vm.args or the url https://user:mdp@serveur:port/_membership wich is the same thing.
I don't understand why it doesn't work
i verify the configuration to and restart CouchDB :
section [httpd_global_handlers] i'v got the option _log and the associate value {couch_httpd_misc_handlers, handle_log_req}
It's sure that the documentation is not right or not sufficiently explicit.
an other idea ?

@olivenvrac
Copy link
Author

I just checked the documentation of the next version of Couchdb (2.1).
this httpd_global_handlers parameter does not exist anymore.
is this a discontinued option ?

@olivenvrac
Copy link
Author

précision : my request is correctly made with a admin user

@wohali
Copy link
Member

wohali commented Aug 29, 2017

My mistake. It looks like this endpoint has been removed in 2.x. Most likely this is because our logging backend now supports things like syslog and rsyslog directly, meaning that there may not even be a persistent storage mechanism through which the log can even be retrieved.

I'll reopen this ticket as a reminder for us to remove documentation for the _log endpoint and add it to the list of breaking changes for 2.x.

@wohali wohali reopened this Aug 29, 2017
@wohali wohali changed the title GET /_log documentation needs updating Remove GET /_log documentation (endpoint deprecated) Aug 29, 2017
@olivenvrac
Copy link
Author

You'r welcome. Thanks for the rapidity of your responses
So, i renounce to use this feature even if it should work in version 2.0 And I still do not understand why it doesn't

@wohali
Copy link
Member

wohali commented Oct 1, 2017

Oh, the documentation was already updated with v2.0 docs:

whatsnew/2.0.rst:* The ``/_log`` endpoint was removed.

Closing this issue.

@wohali wohali closed this as completed Oct 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants