Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- output {
- if ([type]) {
- elasticsearch {
- hosts => ["https://elastic1:9200", "https://elastic2:9200"]
- user => "admin"
- password => "truedev"
- ssl_certificate_verification => true
- manage_template => false
- index => "%{[type]}-%{+YYYY.MM.dd}"
- }
- } else {
- elasticsearch {
- hosts => ["https://elastic1:9200", "https://elastic2:9200"]
- user => "admin"
- password => "truedev"
- ssl_certificate_verification => true
- manage_template => false
- index => "logstash-%{+YYYY.MM.dd}"
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement