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
chmod +x graylog2/
sudo ./graylog2/

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


15 thoughts on “Graylog2 v0.90 Install Script

  1. ./ 6: ./ 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= &

    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
    cp graylog2/ graylog2/

    sed -i -e ‘s/elasticsearch-0.90.10.deb/elasticsearch-1.4.2.deb/’ graylog2/
    sed -i -e ‘s/graylog2-server-0.90.0.tgz/graylog2-server-0.92.3.tgz/’ graylog2/
    sed -i -e ‘s/graylog2-web-interface-0.90.0.tgz/graylog2-web-interface-0.92.3.tgz/’ graylog2/
    sed -i -e ‘s/# elasticsearch/ elasticsearch/’ graylog2/

    chmod +x ./graylog2/


    • Hi
      I did notice you change this line on elasticsearch.yml.
      sed -i -e ‘s/# elasticsearch/ elasticsearch/’ graylog2/

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


      • Taleb,

        The 4 sed operations are changes to the installation shell script.
        The change from “#” to “” 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?


Leave a Reply

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