Last active
May 26, 2018 17:01
-
-
Save Pamir/9cf735306b3160d8445e60c6edf98407 to your computer and use it in GitHub Desktop.
sample-logstash.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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