Skip to content

Instantly share code, notes, and snippets.

@Pamir
Last active May 26, 2018 17:01
Show Gist options
  • Save Pamir/9cf735306b3160d8445e60c6edf98407 to your computer and use it in GitHub Desktop.
Save Pamir/9cf735306b3160d8445e60c6edf98407 to your computer and use it in GitHub Desktop.
sample-logstash.conf
inputs{
file {
path => "/var/logs/*.log"
exclude => "*.gz"
sincedb_path => "/dev/null"
start_position => "beginning"
type => "weblogic"
}
}
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "weblogic-%{+YYYY.MM.dd}"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment