[graylog2] Re: Debian Jessie Graylog 2.1 Apache 2.4 - Cannot access web interface

2016-09-21 Thread Wesley Pallete de Sousa
My server.conf looks like this now

is_master = true
node_id_file = /etc/graylog/server/node-id
password_secret = * SECRET HASH *
root_username = * SECRET USER *
root_password_sha2 = * SECRET AGAIN *
#root_email = ""
root_timezone = America/Sao_Paulo
plugin_dir = /usr/share/graylog-server/plugin
rest_listen_uri = http://hom.example:9000/api/
#rest_transport_uri = http://hom.example:12900
#rest_enable_cors = false
#rest_enable_gzip = false
#rest_enable_tls = true
#rest_tls_cert_file = /path/to/graylog.crt
#rest_tls_key_file = /path/to/graylog.key
#rest_tls_key_password = secret
#rest_max_header_size = 8192
#rest_max_initial_line_length = 4096
#rest_thread_pool_size = 16
#trusted_proxies = 127.0.0.1/32, 0:0:0:0:0:0:0:1/128
web_enable = true
web_listen_uri = http://hom.example:9000/
web_endpoint_uri = http://hom.example:9000/api/
web_enable_cors = true
#web_enable_gzip = false
#web_enable_tls = true
#web_tls_cert_file = /path/to/graylog-web.crt
#web_tls_key_file = /path/to/graylog-web.key
#web_tls_key_password = secret
#web_max_header_size = 8192
#web_max_initial_line_length = 4096
#web_thread_pool_size = 16
elasticsearch_config_file = /etc/elasticsearch/elasticsearch.yml
rotation_strategy = count
elasticsearch_max_docs_per_index = 2000
#elasticsearch_max_size_per_index = 1073741824
#elasticsearch_max_time_per_index = 1d
#elasticsearch_disable_version_check = true
#no_retention = false
elasticsearch_max_number_of_indices = 20
retention_strategy = delete
elasticsearch_max_number_of_indices = 20
retention_strategy = delete
elasticsearch_shards = 4
elasticsearch_replicas = 0
elasticsearch_index_prefix = graylog
#elasticsearch_template_name = graylog-internal
allow_leading_wildcard_searches = false
#elasticsearch_cluster_name = graylog
#elasticsearch_node_name_prefix = graylog-
#elasticsearch_discovery_zen_ping_unicast_hosts = 127.0.0.1:9300
#elasticsearch_node_master = false
#elasticsearch_node_data = false
#elasticsearch_transport_tcp_port = 9350
#elasticsearch_http_enabled = false
#elasticsearch_cluster_discovery_timeout = 5000
#elasticsearch_network_host =
#elasticsearch_network_bind_host =
#elasticsearch_network_publish_host =
#elasticsearch_discovery_initial_state_timeout = 3s
elasticsearch_analyzer = standard
#elasticsearch_request_timeout = 1m
#index_ranges_cleanup_interval = 1h
output_batch_size = 500
output_flush_interval = 1
output_fault_count_threshold = 5
output_fault_penalty_seconds = 30
processbuffer_processors = 5
outputbuffer_processors = 3
#outputbuffer_processor_keep_alive_time = 5000
#outputbuffer_processor_threads_core_pool_size = 3
#outputbuffer_processor_threads_max_pool_size = 30
#udp_recvbuffer_sizes = 1048576
processor_wait_strategy = blocking
ring_size = 65536
inputbuffer_ring_size = 65536
inputbuffer_processors = 2
inputbuffer_wait_strategy = blocking
message_journal_enabled = true
message_journal_dir = /var/lib/graylog-server/journal
#message_journal_max_age = 12h
#message_journal_max_size = 5gb
#message_journal_flush_age = 1m
#message_journal_flush_interval = 100
#message_journal_segment_age = 1h
#message_journal_segment_size = 100mb
#async_eventbus_processors = 2
lb_recognition_period_seconds = 3
#lb_throttle_threshold_percentage = 95
#stream_processing_timeout = 2000
#stream_processing_max_faults = 3
#alert_check_interval = 60
#output_module_timeout = 1
#stale_master_timeout = 2000
#shutdown_timeout = 3
mongodb_uri = mongodb://SECRET_USER:SECRET_PASS@127.0.0.1:27017/graylog
mongodb_max_connections = 1000
mongodb_threads_allowed_to_block_multiplier = 5
#rules_file = /etc/graylog/server/rules.drl
#transport_email_enabled = false
#transport_email_hostname = mail.example.com
#transport_email_port = 587
#transport_email_use_auth = true
#transport_email_use_tls = true
#transport_email_use_ssl = true
#transport_email_auth_username = y...@example.com
#transport_email_auth_password = secret
#transport_email_subject_prefix = [graylog]
#transport_email_from_email = gray...@example.com
#transport_email_web_interface_url = https://graylog.example.com
#http_connect_timeout = 5s
#http_read_timeout = 10s
#http_write_timeout = 10s
#http_proxy_uri =
#disable_index_optimization = true
#index_optimization_max_num_segments = 1
#gc_warning_threshold = 1s
#ldap_connection_timeout = 2000
#disable_sigar = false
#dashboard_widget_default_cache_time = 10s
#content_packs_loader_enabled = true
content_packs_dir = /usr/share/graylog-server/contentpacks
content_packs_auto_load = grok-patterns.json
proxied_requests_thread_pool_size = 32

-- 
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/9df1fc58-1ba3-4df1-8368-bc5f3165b0a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[graylog2] Re: Debian Jessie Graylog 2.1 Apache 2.4 - Cannot access web interface

2016-09-20 Thread Jochen Schalanda
Hi Wesley,

your rest_transport_uri 

 
setting is wrong. Either leave it completely out (so that the default is 
being used; in this case you have to set web_endpoint_uri 

 
accordingly) or change it to http://hom.example/graylog/api/ (guessing from 
your Apache httpd configuration).

Cheers,
Jochen

On Tuesday, 20 September 2016 20:04:41 UTC+2, Wesley Pallete de Sousa wrote:
>
> Hello guys!
>
> I'm working with Graylog 2.1 in my server, but i can't access the web 
> interface. For the last two days i have been looking for answers without 
> success. I started the server in debug mode and everything is working (in 
> theory), but i can't access the 9000 port. I just don't understand what is 
> happening. I tried to configure the apache virtualhost just like the docs 
> example and there is no access change. Everything is configured just like 
> the docs. The only difference here is that i'm using the server under a 
> subdomain, not the ip. I need some help on this.
>
> Apache VirtualHost
> 
>   ServerName hom.example
>
>   DocumentRoot /var/www/www-root
>   AddCharset UTF-8 .utf8
>   ErrorLog /var/log/apache2/hom.error.log
>   CustomLog /var/log/apache2/hom.access.log combined
>
>   
> Options FollowSymLinks MultiViews
> AllowOverride All
> Require all granted
>   
>
> ProxyRequests Off
> 
> Require all granted
> 
>
> 
> RequestHeader set X-Graylog-Server-URL "
> http://hom.example/graylog/api/ 
> 
> "
> ProxyPass http://127.0.0.1:9000/
> ProxyPassReverse http://127.0.0.1:9000/
> 
> 
>
> Graylog Config (Just what i changed many times)
> rest_listen_uri = http://127.0.0.1:9000/api/
> rest_transport_uri = http://127.0.0.1:12900
> web_listen_uri = http://127.0.0.1:9000/
> web_enable = true
>
> The connection to mongodb is working fine, just like the connection to 
> elasticsearch. In theory it should work but i can't access any configured 
> uri.
>
> There are several virtualhost in my server, and i don't have access to 
> create a new subdomain, like graylog.mydomain. That's why i'm trying to 
> configure it under http://hom.example/graylog or 
> http://hom.example:9000/api/.
>
> Sorry for my bad english, is just that i don't practice. Any help is 
> welcome.
>
> Thanks in advance.
>
>

-- 
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/616fa696-58cb-407d-879f-210375aaa93e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.