Sql выписка
statement => "select ref_id,index_name,type,content from t_backup_es_data where backup_id >= :sql_last_value"
Значение возвращаемого столбца type содержит предложение и цитату
if[%{type}] == "quotation" {
elasticsearch {
hosts => "localhost:9200"
index => "%{index_name}"
document_type => "%{type}"
document_id => "%{ref_id}"
manage_template => true
template_overwrite => true
template => "../config/quotationMapping.json"
}
}else if[%{type}] == "proposal" {
elasticsearch {
hosts => "localhost:9200"
index => "%{index_name}"
document_type => "%{type}"
document_id => "%{ref_id}"
manage_template => true
template_overwrite => true
template => "../config/proposalMapping.json"
}
}
Эта конфигурация не работает, что вы посоветуете?