mrlesmithjr / graylog2

GNU General Public License v2.0
118 stars 57 forks source link

logging directory isn't created #29

Closed bobrich closed 9 years ago

bobrich commented 9 years ago

install_graylog2_90_ubuntu.sh logs to ./graylog2 on lines 10 and 11.

set -e
# Setup logging
# Logs stderr and stdout to separate files.
exec 2> >(tee "./graylog2/install_graylog2.err")
exec > >(tee "./graylog2/install_graylog2.log")

But if ./graylog2/ doesn't exist, these fail quietly. Just needs a mkdir above it

spirit986 commented 9 years ago

Yeah.. I also figured that out..

Another thing is.. I am trying to figure this script and to modify it for the latest Graylog2 version 0.91.3. Everything is running ok, but in the end the Graylog2 server starts and exits immediately. I don't know what could be wrong.

Did you know where the Graylog2 keeps the error logs?

bobrich commented 9 years ago

I just went through this myself. You also need to upgrade elasticsearch to 1.3.2 or later.

All i did was:

log locations graylog2-server logs: /opt/graylog2-server/log/ graylog2-web-interface logs: /opt/graylog2-web-interface/nohup.out elasticsearch and mogodb logs are in /var/log