Monthly Archives: August 2014

Logstash info

By default if installed from the package logstash is installed in:
/etc/logstash

After installation create a basic logstash.conf file.
input {

file {
type => “linux-syslog”
path => [“/var/log/*.log”, “/var/log/messages”, “/var/log/syslog” ]
}

file {
type => “apache”
path => [“/var/log/apache2/access.log”, “/var/log/apache2/error.log”]
}

file {
type => “ssh”
path => “/var/log/auth.log”
}

file {
type => “syslog”
path => “/var/log/syslog”
}
}

output {
elasticsearch {
host => localhost
}

stdout {
codec => rubydebug
}
}