Last active
May 2, 2017 11:23
-
-
Save pokev25/696729a91f25f1e010606bf3143b5421 to your computer and use it in GitHub Desktop.
logstash 설정
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
input { | |
redis { | |
host => "192.168.0.20" | |
data_type => "list" | |
key => "key1" | |
codec => "json" | |
db => 3 | |
type => "key1" | |
} | |
} | |
output { | |
if [type] == "key1" { | |
elasticsearch { | |
hosts => "192.168.0.20:9200" | |
index => "key1-%{+YYYY.MM.dd}" | |
document_type => "log" | |
} | |
} | |
} |
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
input { | |
redis { | |
host => "192.168.0.20" | |
data_type => "list" | |
key => "key2" | |
codec => "json" | |
db => 3 | |
type => "key2" | |
} | |
} | |
output { | |
if [type] == "key2" { | |
elasticsearch { | |
hosts => "192.168.0.20:9200" | |
index => "key2-%{+YYYY.MM.dd}" | |
document_type => "log" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment