107 lines
3.6 KiB
Plaintext
107 lines
3.6 KiB
Plaintext
# output_simfony_network_log
|
|
|
|
#input { pipeline { address => "output-simfony-network-log" }}
|
|
|
|
#filter {
|
|
# mutate {
|
|
# remove_field => [ "@timestamp" ]
|
|
# }
|
|
#}
|
|
|
|
output {
|
|
if "notification_simfony" in [tags] {
|
|
kafka {
|
|
bootstrap_servers => "10.5.48.47:9092"
|
|
topic_id => "notification_simfony"
|
|
codec => json
|
|
}
|
|
} else if "notification_ibasis" in [tags] {
|
|
kafka {
|
|
bootstrap_servers => "10.5.48.47:9092"
|
|
topic_id => "notification_ibasis"
|
|
codec => json
|
|
}
|
|
}
|
|
# else if "ocs" in [tags] {
|
|
# elasticsearch {
|
|
# hosts => ["http://10.12.174.15:9200","http://10.12.174.16:9200","http://10.12.174.17:9200"]
|
|
# user => "logstash_internal"
|
|
# password => "vK54tBEFUZaKBVtwsmlHksbr07Rm8cTn"
|
|
# ilm_enabled => true
|
|
# ilm_rollover_alias => "simfony-mobility-ocs-log"
|
|
# ilm_policy => "simfony-log-hot-warm"
|
|
# ilm_pattern => "{now/d}-1"
|
|
# }
|
|
# }
|
|
#else if "diameter" in [tags] {
|
|
# elasticsearch {
|
|
# hosts => ["http://10.12.174.15:9200","http://10.12.174.16:9200","http://10.12.174.17:9200"]
|
|
# user => "logstash_internal"
|
|
# password => "vK54tBEFUZaKBVtwsmlHksbr07Rm8cTn"
|
|
# ilm_enabled => true
|
|
# ilm_rollover_alias => "simfony-mobility-ocs-log"
|
|
# ilm_policy => "simfony-log-hot-warm"
|
|
# ilm_pattern => "{now/d}-1"
|
|
# }
|
|
# } else if "hlr" in [tags] {
|
|
# elasticsearch {
|
|
# hosts => ["http://10.12.174.15:9200","http://10.12.174.16:9200","http://10.12.174.17:9200"]
|
|
# user => "logstash_internal"
|
|
# password => "vK54tBEFUZaKBVtwsmlHksbr07Rm8cTn"
|
|
# ilm_enabled => true
|
|
# ilm_rollover_alias => "simfony-mobility-hlr-log"
|
|
# ilm_policy => "simfony-log-hot-warm"
|
|
# ilm_pattern => "{now/d}-1"
|
|
# }
|
|
# }
|
|
#else if "notification" in [tags] {
|
|
# kafka {
|
|
# bootstrap_servers => "10.12.174.50:9092"
|
|
# topic_id => "testnotification"
|
|
# codec => json
|
|
# }
|
|
# }
|
|
# else if "aaa" in [tags] {
|
|
# elasticsearch {
|
|
# hosts => ["http://10.12.174.15:9200","http://10.12.174.16:9200","http://10.12.174.17:9200"]
|
|
# user => "logstash_internal"
|
|
# password => "vK54tBEFUZaKBVtwsmlHksbr07Rm8cTn"
|
|
# ilm_enabled => true
|
|
# ilm_rollover_alias => "simfony-mobility-aaa-log"
|
|
# ilm_policy => "simfony-log-hot-warm"
|
|
# ilm_pattern => "{now/d}-1"
|
|
# }
|
|
# } else if "dra" in [tags] {
|
|
# elasticsearch {
|
|
# hosts => ["http://10.12.174.15:9200","http://10.12.174.16:9200","http://10.12.174.17:9200"]
|
|
# user => "logstash_internal"
|
|
# password => "vK54tBEFUZaKBVtwsmlHksbr07Rm8cTn"
|
|
# ilm_enabled => true
|
|
# ilm_rollover_alias => "simfony-mobility-dra-log"
|
|
# ilm_policy => "simfony-log-hot-warm"
|
|
# ilm_pattern => "000001"
|
|
# }
|
|
# } else if "hss" in [tags] {
|
|
# elasticsearch {
|
|
# hosts => ["http://10.12.174.15:9200","http://10.12.174.16:9200","http://10.12.174.17:9200"]
|
|
# user => "logstash_internal"
|
|
# password => "vK54tBEFUZaKBVtwsmlHksbr07Rm8cTn"
|
|
# ilm_enabled => true
|
|
# ilm_rollover_alias => "simfony-mobility-hss-log"
|
|
# ilm_policy => "simfony-log-hot-warm"
|
|
# ilm_pattern => "000001"
|
|
# }
|
|
# } else if "meveo" in [tags] {
|
|
# elasticsearch {
|
|
# hosts => ["http://10.12.174.15:9200","http://10.12.174.16:9200","http://10.12.174.17:9200"]
|
|
# user => "logstash_internal"
|
|
# password => "vK54tBEFUZaKBVtwsmlHksbr07Rm8cTn"
|
|
# ilm_enabled => true
|
|
# ilm_rollover_alias => "simfony-mobility-meveo-log"
|
|
# ilm_policy => "simfony-log-hot-warm"
|
|
# ilm_pattern => "000001"
|
|
# }
|
|
# }
|
|
}
|
|
|