Hi Jeremy, Am Freitag, 10. Oktober 2014 05:17:14 UTC+2 schrieb Jeremy Farr: > > Ok, so all looks good there. Now trying with the curl command for the > proper reply: > > [root@graylog2-server graylog2]# curl -i --user admin:mypassword -H > 'Accept: application/json' http://172.20.56.41:12900/system/cluster/node > HTTP/1.1 404 Not Found > Transfer-Encoding: chunked > > {"type":"ApiError","message":"HTTP 404 Not Found"} > > So this appears to be the issue but why the 404 here? >
That's quite strange. For comparison, this is the output of a locally running Graylog2 0.92.0-SNAPSHOT: $ curl -i --user admin:password -H 'Accept: application/json' http://127.0.0.1:12900/system/cluster/node?pretty=true HTTP/1.1 200 OK Content-Type: application/json X-Runtime-Microseconds: 8798 Transfer-Encoding: chunked { "is_master" : true, "last_seen" : "2014-10-14T09:16:07.000Z", "transport_address" : "http://127.0.0.1:12900/", "id" : "637555c4-8327-4379-be55-bc9e6aab7715", "short_node_id" : "637555c4", "type" : "server" } As far as I see in the code, a HTTP response status 404 (Not Found) just should not happen in that resource. It doesn't even require authentication. Please check your graylog2-server logs if any exceptions are being logged at or around the time you fire the HTTP request. Additionally, please check that there is an entry for your Graylog2 server in the *nodes* collection in MongoDB. You can find the node ID of your Graylog2 server in the file referenced by *node_id_file* in your graylog2.conf. Example: $ mongo graylog2 MongoDB shell version: 2.6.5 connecting to: graylog2 > db.nodes.find( { "node_id": "637555c4-8327-4379-be55-bc9e6aab7715" } ) { "_id" : ObjectId("543ceb9444ae1e46bcb5922c"), "is_master" : true, "last_seen" : 1413278758, "transport_address" : "http://127.0.0.1:12900/", "type" : "SERVER", "node_id" : "637555c4-8327-4379-be55-bc9e6aab7715" } Cheers, Jochen -- You received this message because you are subscribed to the Google Groups "graylog2" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
