[graylog2] Re: New to graylog Issue to login after server.conf change

2016-08-03 Thread Guillaume Migaszewski
dear Jochen, 

Thank you it is working now ;) . 

Guillaume.

On Tuesday, August 2, 2016 at 4:41:18 PM UTC+2, Jochen Schalanda wrote:
>
> Hi Guillaume,
>
> that's the wrong port. The POST request must be directed to the Graylog 
> REST API.
>
> Make sure to remove or comment out the web_endpoint_uri setting in your 
> Graylog configuration file.
>
> Cheers,
> Jochen
>
> On Tuesday, 2 August 2016 16:28:43 UTC+2, Guillaume Migaszewski wrote:
>>
>> Dear Jochen , 
>>
>> Attached my server.conf. 
>>
>>
>> Also some additional  curl output 
>>
>>  curl -v -XPOST 10.1.0.215:9000/system/sessions
>> * About to connect() to 10.1.0.215 port 9000 (#0)
>> *   Trying 10.1.0.215... connected
>> * Connected to 10.1.0.215 (10.1.0.215) port 9000 (#0)
>> > POST /system/sessions HTTP/1.1
>> > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/
>> 3.16.2.3 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
>> > Host: 10.1.0.215:9000
>> > Accept: */*
>> >
>> < HTTP/1.1 405 Method Not Allowed
>> < Allow: GET,OPTIONS
>> < X-Graylog-Node-ID: 5416caad-4269-4f9b-ad0f-1beb73770838
>> < Vary: Accept-Encoding
>> < Content-Type: application/json
>> < Date: Tue, 02 Aug 2016 14:27:43 GMT
>> < Content-Length: 59
>> <
>> * Connection #0 to host 10.1.0.215 left intact
>> * Closing connection #0
>> {"type":"ApiError","message":"HTTP 405 Method Not Allowed"}[
>>
>>
>>
>> Guillaume.
>>
>>
>> On Tuesday, August 2, 2016 at 2:57:13 PM UTC+2, Jochen Schalanda wrote:
>>>
>>> Hi Guillaume,
>>>
>>> please post your complete Graylog configuration file or be more explicit 
>>> about how the relevant settings (rest_* and web_*) are configured right 
>>> now.
>>>
>>> Also check the Developer Console of your web browser for error messages 
>>> and post them here.
>>>
>>> Cheers,
>>> Jochen
>>>
>>> On Tuesday, 2 August 2016 14:30:29 UTC+2, Guillaume Migaszewski wrote:

 Dear Graylog users, 

 I have done an rpm install of Graylog . At first I was not able to 
 login from any other machine than localhost .As a result , with your 
 assistance , I have changed following settings  server.conf 

 rest_listen_uri = http://127.0.0.1:12900/
 rest_listen_uri = http://10.1.0.215:12900/(10.1.0.215 my server ip)

 web_listen_uri = http://127.0.0.1:9000/
 web_listen_uri = http://10.1.0.215:9000/


 As a result  I can reach login screen from any workstation. But after 
 sending my credentials I have following error message : 

 Error - the server returned: 405 - cannot POST /system/sessions (405)


 All resources I have found are speaking about reverse proxy or ssl use 
 but I have none of it . 

 It has been a while I did not have such a hard time to install an 
 application on Linux. ;) .But I will not give up.

 Thanks for your help.

 Guillaume.

>>>

-- 
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/6d8cb89d-077a-4276-8a33-c23860f612bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[graylog2] Re: New to graylog Issue to login after server.conf change

2016-08-02 Thread Jochen Schalanda
Hi Guillaume,

that's the wrong port. The POST request must be directed to the Graylog 
REST API.

Make sure to remove or comment out the web_endpoint_uri setting in your 
Graylog configuration file.

Cheers,
Jochen

On Tuesday, 2 August 2016 16:28:43 UTC+2, Guillaume Migaszewski wrote:
>
> Dear Jochen , 
>
> Attached my server.conf. 
>
>
> Also some additional  curl output 
>
>  curl -v -XPOST 10.1.0.215:9000/system/sessions
> * About to connect() to 10.1.0.215 port 9000 (#0)
> *   Trying 10.1.0.215... connected
> * Connected to 10.1.0.215 (10.1.0.215) port 9000 (#0)
> > POST /system/sessions HTTP/1.1
> > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/
> 3.16.2.3 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> > Host: 10.1.0.215:9000
> > Accept: */*
> >
> < HTTP/1.1 405 Method Not Allowed
> < Allow: GET,OPTIONS
> < X-Graylog-Node-ID: 5416caad-4269-4f9b-ad0f-1beb73770838
> < Vary: Accept-Encoding
> < Content-Type: application/json
> < Date: Tue, 02 Aug 2016 14:27:43 GMT
> < Content-Length: 59
> <
> * Connection #0 to host 10.1.0.215 left intact
> * Closing connection #0
> {"type":"ApiError","message":"HTTP 405 Method Not Allowed"}[
>
>
>
> Guillaume.
>
>
> On Tuesday, August 2, 2016 at 2:57:13 PM UTC+2, Jochen Schalanda wrote:
>>
>> Hi Guillaume,
>>
>> please post your complete Graylog configuration file or be more explicit 
>> about how the relevant settings (rest_* and web_*) are configured right 
>> now.
>>
>> Also check the Developer Console of your web browser for error messages 
>> and post them here.
>>
>> Cheers,
>> Jochen
>>
>> On Tuesday, 2 August 2016 14:30:29 UTC+2, Guillaume Migaszewski wrote:
>>>
>>> Dear Graylog users, 
>>>
>>> I have done an rpm install of Graylog . At first I was not able to login 
>>> from any other machine than localhost .As a result , with your assistance , 
>>> I have changed following settings  server.conf 
>>>
>>> rest_listen_uri = http://127.0.0.1:12900/
>>> rest_listen_uri = http://10.1.0.215:12900/(10.1.0.215 my server ip)
>>>
>>> web_listen_uri = http://127.0.0.1:9000/
>>> web_listen_uri = http://10.1.0.215:9000/
>>>
>>>
>>> As a result  I can reach login screen from any workstation. But after 
>>> sending my credentials I have following error message : 
>>>
>>> Error - the server returned: 405 - cannot POST /system/sessions (405)
>>>
>>>
>>> All resources I have found are speaking about reverse proxy or ssl use 
>>> but I have none of it . 
>>>
>>> It has been a while I did not have such a hard time to install an 
>>> application on Linux. ;) .But I will not give up.
>>>
>>> Thanks for your help.
>>>
>>> Guillaume.
>>>
>>

-- 
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/377c47c3-2242-430e-a32b-5983b14d9a71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[graylog2] Re: New to graylog Issue to login after server.conf change

2016-08-02 Thread Guillaume Migaszewski
Dear Jochen , 

Attached my server.conf. 


Also some additional  curl output 

 curl -v -XPOST 10.1.0.215:9000/system/sessions
* About to connect() to 10.1.0.215 port 9000 (#0)
*   Trying 10.1.0.215... connected
* Connected to 10.1.0.215 (10.1.0.215) port 9000 (#0)
> POST /system/sessions HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 
NSS/3.16.2.3 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: 10.1.0.215:9000
> Accept: */*
>
< HTTP/1.1 405 Method Not Allowed
< Allow: GET,OPTIONS
< X-Graylog-Node-ID: 5416caad-4269-4f9b-ad0f-1beb73770838
< Vary: Accept-Encoding
< Content-Type: application/json
< Date: Tue, 02 Aug 2016 14:27:43 GMT
< Content-Length: 59
<
* Connection #0 to host 10.1.0.215 left intact
* Closing connection #0
{"type":"ApiError","message":"HTTP 405 Method Not Allowed"}[



Guillaume.


On Tuesday, August 2, 2016 at 2:57:13 PM UTC+2, Jochen Schalanda wrote:
>
> Hi Guillaume,
>
> please post your complete Graylog configuration file or be more explicit 
> about how the relevant settings (rest_* and web_*) are configured right 
> now.
>
> Also check the Developer Console of your web browser for error messages 
> and post them here.
>
> Cheers,
> Jochen
>
> On Tuesday, 2 August 2016 14:30:29 UTC+2, Guillaume Migaszewski wrote:
>>
>> Dear Graylog users, 
>>
>> I have done an rpm install of Graylog . At first I was not able to login 
>> from any other machine than localhost .As a result , with your assistance , 
>> I have changed following settings  server.conf 
>>
>> rest_listen_uri = http://127.0.0.1:12900/
>> rest_listen_uri = http://10.1.0.215:12900/(10.1.0.215 my server ip)
>>
>> web_listen_uri = http://127.0.0.1:9000/
>> web_listen_uri = http://10.1.0.215:9000/
>>
>>
>> As a result  I can reach login screen from any workstation. But after 
>> sending my credentials I have following error message : 
>>
>> Error - the server returned: 405 - cannot POST /system/sessions (405)
>>
>>
>> All resources I have found are speaking about reverse proxy or ssl use 
>> but I have none of it . 
>>
>> It has been a while I did not have such a hard time to install an 
>> application on Linux. ;) .But I will not give up.
>>
>> Thanks for your help.
>>
>> Guillaume.
>>
>

-- 
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/8b277a0b-e32a-466c-916e-56e02430f0d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
# If you are running more than one instances of Graylog server you have to 
select one of these
# instances as master. The master will perform some periodical tasks that 
non-masters won't perform.
is_master = true

# The auto-generated node ID will be stored in this file and read after 
restarts. It is a good idea
# to use an absolute file path here if you are starting Graylog server from 
init scripts or similar.
node_id_file = /etc/graylog/server/node-id

# You MUST set a secret to secure/pepper the stored user passwords here. Use at 
least 64 characters.
# Generate one by using for example: pwgen -N 1 -s 96
password_secret = removed

# The default root user is named 'admin'
#root_username = admin

# You MUST specify a hash password for the root user (which you only need to 
initially set up the
# system and in case you lose connectivity to your authentication backend)
# This password cannot be changed using the API or via the web interface. If 
you need to change it,
# modify it in this file.
# Create one by using for example: echo -n yourpassword | shasum -a 256
# and put the resulting hash value into the following line
root_password_sha2 = removed

# The email address of the root user.
# Default is empty
#root_email = ""

# The time zone setting of the root user. See 
http://www.joda.org/joda-time/timezones.html for a list of valid time zones.
# Default is UTC
#root_timezone = UTC

# Set plugin directory here (relative or absolute)
plugin_dir = /usr/share/graylog-server/plugin

# REST API listen URI. Must be reachable by other Graylog server nodes if you 
run a cluster.
# When using Graylog Collectors, this URI will be used to receive heartbeat 
messages and must be accessible for all collectors.
rest_listen_uri = http://10.1.0.215:12900/

# REST API transport address. Defaults to the value of rest_listen_uri. 
Exception: If rest_listen_uri
# is set to a wildcard IP address (0.0.0.0) the first non-loopback IPv4 system 
address is used.
# If set, this will be promoted in the cluster discovery APIs, so other nodes 
may try to connect on
# this address and it is used to generate URLs addressing entities in the REST 
API. (see rest_listen_uri)
# You will need to define this, if your Graylog server is running behind a HTTP 
proxy that is rewriting
# the scheme, host name or URI.
# This

[graylog2] Re: New to graylog Issue to login after server.conf change

2016-08-02 Thread Jochen Schalanda
Hi Guillaume,

please post your complete Graylog configuration file or be more explicit 
about how the relevant settings (rest_* and web_*) are configured right now.

Also check the Developer Console of your web browser for error messages and 
post them here.

Cheers,
Jochen

On Tuesday, 2 August 2016 14:30:29 UTC+2, Guillaume Migaszewski wrote:
>
> Dear Graylog users, 
>
> I have done an rpm install of Graylog . At first I was not able to login 
> from any other machine than localhost .As a result , with your assistance , 
> I have changed following settings  server.conf 
>
> rest_listen_uri = http://127.0.0.1:12900/
> rest_listen_uri = http://10.1.0.215:12900/(10.1.0.215 my server ip)
>
> web_listen_uri = http://127.0.0.1:9000/
> web_listen_uri = http://10.1.0.215:9000/
>
>
> As a result  I can reach login screen from any workstation. But after 
> sending my credentials I have following error message : 
>
> Error - the server returned: 405 - cannot POST /system/sessions (405)
>
>
> All resources I have found are speaking about reverse proxy or ssl use but 
> I have none of it . 
>
> It has been a while I did not have such a hard time to install an 
> application on Linux. ;) .But I will not give up.
>
> Thanks for your help.
>
> Guillaume.
>

-- 
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/c5dac29a-ad67-4431-99a3-b93d168f230d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.