Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion logstash/pipeline/01_input.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ input {
jdbc_driver_library => "/usr/share/logstash/ccd/postgresql.jar"
jdbc_driver_class => "org.postgresql.Driver"
jdbc_default_timezone => "UTC"
statement => "UPDATE case_data SET marked_by_logstash = true WHERE marked_by_logstash = false RETURNING id, created_date, last_modified, jurisdiction, case_type_id, state, last_state_modified_date, data::TEXT as json_data, data_classification::TEXT as json_data_classification, reference, security_classification, supplementary_data::TEXT as json_supplementary_data"
statement => "DELETE FROM case_data_logstash_queue USING case_data WHERE case_data_logstash_queue.case_data_id = case_data.id RETURNING case_data.id, created_date, last_modified, jurisdiction, case_type_id, state, last_state_modified_date, data::TEXT as json_data, data_classification::TEXT as json_data_classification, reference, security_classification, supplementary_data::TEXT as json_supplementary_data, version"
clean_run => false
schedule => "* * * * * *"
}
Expand Down
5 changes: 5 additions & 0 deletions logstash/pipeline/03_output.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@ output {
document_type => "_doc"
document_id => "%{id}"
timeout => 60
# External versioning configuration
version => "%{version}"
version_type => "external"
# Handle version conflicts gracefully
retry_on_conflict => 0
}
}