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
}
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s