When you access the web interface through port 9000 nginx is not used. The
request is handled directly by the java application.
With the installed content pack you can setup an external nginx
installation, e.g. another container with nginx running and send the logs
to your Graylog container. The contentpack is only a canned configuration
for Graylog to easily setup Inputs, Stream and Dashboards. Nginx still
needs to be configured to send logs to the right place.

On 16 April 2015 at 17:08, Yang Peter <[email protected]> wrote:

>
> I have install graylog2 docker successfully,
> and I can access the web interface http://localhost:9000/
>
> docker run -t -p 9000:9000 -p 12201:12201 -p 12301:12301 -p 12302:12302
> graylog2/allinone
>
>
> for nginx:
>
> I followed this guide,
> https://www.graylog.org/resource/content-pack/547b5021e4b0a06d87eea01e/
>
> log_format graylog2_format '$remote_addr - $remote_user [$time_local] "
> $request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "
> $http_x_forwarded_for" <msec=$msec|connection=$connection
> |connection_requests=$connection_requests|millis=$request_time>'; #
> replace the hostnames with the IP or hostname of your Graylog2 server
> access_log syslog:server=localhost:12301 graylog2_format; error_log
> syslog:server=localhost:12302;
>
>
> But I still not get any message from web interface,
> how to check this problem?
>
> --
> 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.
>



-- 
Developer

Tel.: +49 (0)40 609 452 077
Fax.: +49 (0)40 609 452 078

TORCH GmbH - A Graylog Company
Steckelhörn 11
20457 Hamburg
Germany

https://www.graylog.com <https://www.torch.sh/>

Commercial Reg. (Registergericht): Amtsgericht Hamburg, HRB 125175
Geschäftsführer: Lennart Koopmann (CEO)

-- 
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.

Reply via email to