Advertisement
Guest User

Untitled

a guest
Nov 7th, 2018
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.56 KB | None | 0 0
  1. output {
  2.   if ([type]) {
  3.     elasticsearch {
  4.       hosts => ["https://elastic1:9200", "https://elastic2:9200"]
  5.       user => "admin"
  6.       password => "truedev"
  7.       ssl_certificate_verification => true
  8.       manage_template => false
  9.       index => "%{[type]}-%{+YYYY.MM.dd}"
  10.     }
  11.   } else {
  12.     elasticsearch {
  13.       hosts => ["https://elastic1:9200", "https://elastic2:9200"]
  14.       user => "admin"
  15.       password => "truedev"
  16.       ssl_certificate_verification => true
  17.       manage_template => false
  18.       index => "logstash-%{+YYYY.MM.dd}"
  19.     }
  20.   }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement