Last active
January 4, 2016 03:09
-
-
Save azihsoyn/8560029 to your computer and use it in GitHub Desktop.
detail for https://twitter.com/azihsoyn/status/425837771870044160
同じような設定を書くのがめんどくさかったので。。
過去にも似たのがあった
→ https://twitter.com/cosadn/status/273498369240989696
This file contains 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
<match elasticsearch.system1.subsystem1.server1.**> | |
index_name system1 | |
type_name subsystem1 | |
type elasticsearch | |
include_tag_key true | |
tag_key @log_name | |
host xxx.xxx.xxx.xxx | |
port 9200 | |
logstash_format true | |
flush_interval 10s | |
</match> | |
<match elasticsearch.system1.subsystem2.server2.**> | |
index_name system1 | |
type_name subsystem2 | |
type elasticsearch | |
include_tag_key true | |
tag_key @log_name | |
host xxx.xxx.xxx.xxx | |
port 9200 | |
logstash_format true | |
flush_interval 10s | |
</match> | |
↓ | |
<match elasticsearch.*.*.**> | |
index_name $1 | |
type_name $2 | |
type elasticsearch | |
include_tag_key true | |
tag_key @log_name | |
host xxx.xxx.xxx.xxx | |
port 9200 | |
logstash_format true | |
flush_interval 10s | |
</match> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment