Graylog2 v0.90 Install Script

In the past I have been updating the auto install scripts for Graylog2 and updating the original post each time. However here on out I will be creating new posts for each release in hopes of keeping it much cleaner. I will be including a link back to the original post for reference on setting up and additional information as well as comments from others.

So at this time I am releasing the latest install script for Graylog2 v0.90 on Ubuntu. Please provide any feedback.

This post will only cover a fresh new install of Graylog2 however I will be working on upgrade scripts from v0.20 versions to the newest v0.90 and they will be in separate posts as well to keep confusion down.

To install Graylog2 v0.90 do the following on a Ubuntu 12.x/13.x/14.x server.

sudo apt-get install git
cd ~
git clone https://github.com/mrlesmithjr/graylog2
chmod +x graylog2/install_graylog2_90_ubuntu.sh
sudo ./graylog2/install_graylog2_90_ubuntu.sh

For additional steps in setting up head over to this post.

Enjoy!

15 thoughts on “Graylog2 v0.90 Install Script

  1. ./install_graylog2_90_ubuntu.sh: 6: ./install_graylog2_90_ubuntu.sh: Syntax error: newline unexpected

    I get this error.

  2. I can’t figure out how to change the listening port of the http address. I seem to keep missing something.

    Here is what I did:

    nano /etc/init.d/graylog2-web-interface
    #change the line:
    $NOHUP /opt/graylog2-web-interface/bin/graylog2-web-interface -Dhttp.port=80 -Dhttp.address=127.0.0.1 -Djava.net.preferIPv4Stack=true &

    The thing is, that it actually listening to port 80 in the ipv4 stack, put the webpage won’t show up.
    Am I missing something?

  3. To make the script work with elastic search version 1.4.2 and graylog 0.92.3 (current on jan 2015), use the code below:

    apt-get -qq update
    apt-get -y install git

    cd ~
    git clone https://github.com/mrlesmithjr/graylog2
    cp graylog2/install_graylog2_90_ubuntu.sh graylog2/install_graylog2_92.3_ubuntu.sh

    sed -i -e ‘s/elasticsearch-0.90.10.deb/elasticsearch-1.4.2.deb/’ graylog2/install_graylog2_92.3_ubuntu.sh
    sed -i -e ‘s/graylog2-server-0.90.0.tgz/graylog2-server-0.92.3.tgz/’ graylog2/install_graylog2_92.3_ubuntu.sh
    sed -i -e ‘s/graylog2-web-interface-0.90.0.tgz/graylog2-web-interface-0.92.3.tgz/’ graylog2/install_graylog2_92.3_ubuntu.sh
    sed -i -e ‘s/# cluster.name: elasticsearch/#cluster.name: elasticsearch/’ graylog2/install_graylog2_92.3_ubuntu.sh

    chmod +x ./graylog2/install_graylog2_92.3_ubuntu.sh

    ./graylog2/install_graylog2_92.3_ubuntu.sh

    • Hi
      I did notice you change this line on elasticsearch.yml.
      sed -i -e ‘s/# cluster.name: elasticsearch/#cluster.name: elasticsearch/’ graylog2/install_graylog2_92.3_ubuntu.sh

      Why you did that, I mean you even left the line commented.

      Thanks

      • Taleb,

        The 4 sed operations are changes to the installation shell script.
        The change from “# cluster.name” to “#cluster.name” in the installation shell script was needed because ” elasticsearch.yml” has changed in the original download files of elastic search.

        The actual change is done by the installation shell script…

        Download the instal shell script and do a diff between the original and modified shell script…

  4. Hi,
    on line 38, you disabled SELinux (On CentOS), but you did leave it disabled, isn’t a security risk, and if enabled again, will it affect the installed applications?

    Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *

*