@task
def install_logstash():

    sudo('apt-get install -y default-jre')

    sudo('mkdir /home/ubuntu/logstash/')
    with cd('/home/ubuntu/logstash/'):
        sudo('wget https://download.elasticsearch.org/logstash/logstash/logstash-1.2.2-flatjar.jar')
        put(conf('shipper.conf'), '/home/ubuntu/logstash/shipper.conf', use_sudo=True)

    put(conf('logstash.conf'), '/etc/init/logstash.conf', use_sudo=True)
    sudo('service logstash start')
Ensures we have a connection to the email server. Returns whether or
dataset/ETHPy150Open ebu/radiodns-plugit/Deployment/plugit/plugit_server.py/install_logstash--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/core/mail/backends/smtp.py/EmailBackend.open