logstash output elasticsearch 配置

logstash output elasticsearch 配置

output {
	#stdout { codec => rubydebug }
	elasticsearch {
		user => "admin"
		password => "admin"
		index => "logstash-%{type}-%{+YYYY.MM.dd}"
		codec => "json"
		hosts => ["192.168.1.241:8379"]
	}
}