Skip to content

Instantly share code, notes, and snippets.

@damianharvey
Last active August 29, 2015 14:16
Show Gist options
  • Save damianharvey/228af88b99be4d235040 to your computer and use it in GitHub Desktop.
Save damianharvey/228af88b99be4d235040 to your computer and use it in GitHub Desktop.
ELK Demo logstash config
input {
file {
path => [ "/logdata/access_log" ]
type => "apache-access"
start_position => "beginning"
}
file {
path => [ "/logdata/error_log" ]
type => "apache-error"
start_position => "beginning"
}
file {
path => [ "/logdata/catalina.out" ]
type => "tomcat"
start_position => "beginning"
}
file {
path => [ "/logdata/scorespro.log" ]
type => "log4j"
start_position => "beginning"
}
}
output {
elasticsearch {
embedded => ES_EMBEDDED
host => "ES_HOST"
port => "ES_PORT"
protocol => "http"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment