[graylog2] Re: API not working since 2.1 upgrade

2016-09-09 Thread T.J. Yang


On Friday, September 9, 2016 at 5:50:53 AM UTC-5, Aykisn wrote:
>
> Oh that was it. I feel stupid now 6 -.-'  
>

> Thanks a whole lot !
>

Thanks for switching to new api url first ;) 

Please join this 
discussion https://groups.google.com/forum/#!topic/graylog2/H3OEQrJo9TY

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/6bb56cee-5065-4856-a840-0e6dc4c54f31%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[graylog2] Re: API not working since 2.1 upgrade

2016-09-09 Thread Aykisn
Oh that was it. I feel stupid now 6 -.-' 

Thanks a whole lot !

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/859f00ab-36c9-4680-9264-7f465cb74b7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[graylog2] Re: API not working since 2.1 upgrade

2016-09-09 Thread T.J. Yang
I did the 2.0.3 to 2.1 update via yum on centos7 also. api was not changed. 
I was able to reach api using old url.

After watching this thread, I did following
 
1. http://myip:12900/ -> http://myip:9000/api/ 
in  /etc/graylog/server/server.conf for rest_listen_uri setting.
2. systemctl restart graylog-server
3. see screenshot 

The only concern I have is that it take very long time api url to return

tj

On Friday, September 9, 2016 at 5:22:43 AM UTC-5, Jochen Schalanda wrote:
>
> Hi Aykisn,
>
> you can reach the API browser at http://:9000/api/api-browser.
>
> Cheers,
> Jochen
>
> On Friday, 9 September 2016 11:54:13 UTC+2, Aykisn wrote:
>>
>> The http://ip:9000/api/system link gets me to this page (after 
>> authentication) :
>>
>>
>> 
>>
>> What I would want is the old api interface with all the requests, does it 
>> still exist ? (
>> https://s3.amazonaws.com/graylogblog/Tips_Tricks_Graylog_REST_API/2_REST_API.png
>> )
>>
>> Thanks.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/e61c21fa-b3c8-41b5-88ff-72a18346d9e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[graylog2] Re: API not working since 2.1 upgrade

2016-09-09 Thread Jochen Schalanda
Hi Aykisn,

you can reach the API browser at http://:9000/api/api-browser.

Cheers,
Jochen

On Friday, 9 September 2016 11:54:13 UTC+2, Aykisn wrote:
>
> The http://ip:9000/api/system link gets me to this page (after 
> authentication) :
>
>
> 
>
> What I would want is the old api interface with all the requests, does it 
> still exist ? (
> https://s3.amazonaws.com/graylogblog/Tips_Tricks_Graylog_REST_API/2_REST_API.png
> )
>
> Thanks.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/c4caed1e-d060-4a21-8aaf-d5301eb1aa29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[graylog2] Re: API not working since 2.1 upgrade

2016-09-09 Thread Aykisn
The http://ip:9000/api/system link gets me to this page (after 
authentication) :



What I would want is the old api interface with all the requests, does it 
still exist ? 
(https://s3.amazonaws.com/graylogblog/Tips_Tricks_Graylog_REST_API/2_REST_API.png)

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/9224eae3-2b0b-487c-b4b9-6f44951d2219%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[graylog2] Re: API not working since 2.1 upgrade

2016-09-09 Thread Jochen Schalanda
Hi Aykisn,

the redirect at the root resource of the Graylog REST API is there to 
prevent users from accidentally opening the Graylog REST API in their 
browser if they actually want to open the web interface.

You can still access the "real" resources of the Graylog REST API as 
before, e. g. http://:9000/api/system/, otherwise the Graylog web 
interface wouldn't work.

Cheers,
Jochen

On Friday, 9 September 2016 06:15:51 UTC+2, Aykisn wrote:
>
> Well, I don't understand :o As I said, going to http://ip:900/api with 
> rest_listen_uri set to http://0.0.0.0:9000/api/ just redirects me to the 
> web interface.
>
> How can I access the old API page ? Or is that not possible anymore ?
>
> Regards.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/7ae228e2-5a55-4260-ac8b-8e6f4e0206de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[graylog2] Re: API not working since 2.1 upgrade

2016-09-08 Thread Aykisn
Well, I don't understand :o As I said, going to http://ip:900/api with 
rest_listen_uri set to http://0.0.0.0:9000/api/ just redirects me to the 
web interface.

How can I access the old API page ? Or is that not possible anymore ?

Regards.

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/681a5641-3c44-45d0-971c-61a5435c53ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[graylog2] Re: API not working since 2.1 upgrade

2016-09-08 Thread Jochen Schalanda
Hi Aykisn,

that looks good. Do you have any specific problem you want to solve or was 
it a general question?

Cheers,
Jochen

On Thursday, 8 September 2016 12:38:52 UTC+2, Aykisn wrote:
>
> Hi,
>
> Here is the output of the curl :
>
> HTTP/1.1 307 Temporary Redirect
> Location: http://10.2.2.21:9000/
> X-Graylog-Node-ID: 6aa2507f-a784-43d5-9732-6c987d284445
> X-Runtime-Microseconds: 793
> Date: Thu, 08 Sep 2016 10:37:59 GMT
> Content-Length: 0
>
> Thanks.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/da9bc7de-56d5-4b68-89f8-1d96f35b8a95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[graylog2] Re: API not working since 2.1 upgrade

2016-09-08 Thread Aykisn
Hi,

Here is the output of the curl :

HTTP/1.1 307 Temporary Redirect
Location: http://10.2.2.21:9000/
X-Graylog-Node-ID: 6aa2507f-a784-43d5-9732-6c987d284445
X-Runtime-Microseconds: 793
Date: Thu, 08 Sep 2016 10:37:59 GMT
Content-Length: 0

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/329c53f8-9568-4a4b-8d5f-8ba8dc9b15ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[graylog2] Re: API not working since 2.1 upgrade

2016-09-08 Thread Jochen Schalanda
Hi Aykisn,

On Thursday, 8 September 2016 10:56:28 UTC+2, Aykisn wrote:
>
> I tried to change the rest line to :
> rest_listen_uri = http://0.0.0.0:9000/api but it didn't help, it just 
> redirects me to the nrmal graylog web interface.
>

Yes, that's to be expected and an intentional redirect.

What's the output of the following curl command?

curl -i http://:9000/api/?pretty=true


Cheers,
Jochen

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/b5d622ea-62eb-4089-9a75-c684efd85dda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[graylog2] Re: API not working since 2.1 upgrade

2016-09-08 Thread Aykisn

>
> I can't access to the est API since the upgrade. I went to 
> http://hostname:9000/api, but got a 404 error (with the monkey picture).
>

Sorry, forgot to add that I then tried on http://hostname:12900/api but 
that didn't work either (no page is loaded).

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/38d6b7da-b48e-4a5f-a1b0-254760af6951%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.