Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reverting config #34506

Merged
Merged
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
62 changes: 1 addition & 61 deletions apps/ccd/ccd-logstash-civil/ithc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,64 +5,4 @@ metadata:
spec:
releaseName: ccd-logstash-civil
values:
replicas: 1
logstashConfig:
logstash.yml: |
http.host: 0.0.0.0
xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.hosts: ["${ES_HOSTS}"]
queue.type: persisted
dead_letter_queue.enable: true
pipelines.yml: |
- pipeline.id: main
path.config: "/usr/share/logstash/pipeline/{01_input,03_input,03_filter,03_output}.conf"
pipeline.workers: 4
pipeline.batch.size: 500
queue.type: persisted
- pipeline.id: index-dead-letter-to-es
path.config: "/usr/share/logstash/pipeline/dead_letter_indexing_pipeline.conf"
pipeline.workers: 1
dead_letter_queue.enable: false
logstashPipeline:
01_input.conf: |
input {
jdbc {
jdbc_connection_string => "${DATA_STORE_URL}"
jdbc_user => "${DATA_STORE_USER}"
jdbc_password => "${DATA_STORE_PASS}"
jdbc_validate_connection => true
jdbc_validation_timeout => "1"
jdbc_driver_library => "/usr/share/logstash/ccd/postgresql.jar"
jdbc_driver_class => "org.postgresql.Driver"
jdbc_default_timezone => "UTC"
parameters => {
"divorcej" => "DIVORCE"
"civilj" => "CIVIL"
"cmcj" => "CMC"
"probatej" => "PROBATE"
"ethosj" => "EMPLOYMENT"
"sscsj" => "SSCS"
}
statement => "UPDATE case_data SET marked_by_logstash = true WHERE marked_by_logstash = false AND jurisdiction != :divorcej AND jurisdiction != :civilj AND jurisdiction != :cmcj AND jurisdiction != :probatej AND jurisdiction != :sscsj AND jurisdiction != :ethosj 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"
clean_run => false
schedule => "* * * * * *"
}
}
03_input.conf: |
input {
jdbc {
jdbc_connection_string => "${DATA_STORE_URL}"
jdbc_user => "${DATA_STORE_USER}"
jdbc_password => "${DATA_STORE_PASS}"
jdbc_validate_connection => true
jdbc_driver_library => "/usr/share/logstash/ccd/postgresql.jar"
jdbc_driver_class => "org.postgresql.Driver"
jdbc_default_timezone => "UTC"
parameters => {
"jurisdiction" => "CIVIL"
}
statement => "UPDATE case_data SET marked_by_logstash = true WHERE marked_by_logstash = false AND jurisdiction = :jurisdiction 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"
clean_run => false
schedule => "* * * * * *"
}
}
replicas: 1
Loading