input {
http {
host => "0.0.0.0"
port => 9700
type => "from_ys"
}
}
input {
http {
host => "0.0.0.0"
port => 9600
type => "from_sc"
}
}

output{
if [type] == "from_ys"{
elasticsearch {
hosts => ["192.168.123.1:9200"]
index => "logstash-test-%{+YYYY.MM.dd}"
flush_size => 100
}
}

if [type] == "from_sc"{
elasticsearch {
hosts => ["192.168.122.1:9200"]
index => "logstash-test-pro-%{+YYYY.MM.dd}"
flush_size => 100
}
}
}

 

相关文章:

  • 2021-09-03
  • 2022-12-23
  • 2021-11-24
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
猜你喜欢
  • 2021-11-03
  • 2021-08-18
  • 2021-10-18
  • 2022-12-23
  • 2022-12-23
  • 2021-10-05
  • 2021-12-21
相关资源
相似解决方案