Skip to content

Update log export for OpenSearch#392

Open
pburkholder wants to merge 2 commits intomainfrom
pb/log-get
Open

Update log export for OpenSearch#392
pburkholder wants to merge 2 commits intomainfrom
pb/log-get

Conversation

@pburkholder
Copy link
Copy Markdown
Contributor

Changes proposed in this pull request:

  • Runs on OpenSearch Manager
  • Uses TLS
  • Changes exit criteria from d/lo loop
  • Compresses final product
  • Creates just one .CSV file

security considerations

uses TLS, improvement.

@pburkholder pburkholder requested a review from a team as a code owner April 7, 2026 19:30
Comment on lines +24 to +26
CERT_PATH="/var/vcap/jobs/opensearch/config/ssl/opensearch-admin.crt"
KEY_PATH="/var/vcap/jobs/opensearch/config/ssl/opensearch-admin.key"
CA_PATH="/var/vcap/jobs/opensearch/config/ssl/opensearch.ca"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about making these three variables something that you have to set on the command line before running this script? I have some hesitation about hardcoding these paths into this script, but at the same time I can't think of a very compelling reason why.

@JasonTheMain
Copy link
Copy Markdown
Contributor

We need a way or a procedure stating to clean up the document on the vm

@JasonTheMain
Copy link
Copy Markdown
Contributor

We need a way or a procedure stating to clean up the document on the vm

I think this script needs to store them in the /var/vcap/store. that way if its forgotten we aren't putting a manager in danger

CERT_PATH="/var/vcap/jobs/opensearch/config/ssl/opensearch-admin.crt"
KEY_PATH="/var/vcap/jobs/opensearch/config/ssl/opensearch-admin.key"
CA_PATH="/var/vcap/jobs/opensearch/config/ssl/opensearch.ca"
OUTPUT_FILE="logs_export.csv"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change this to be somewhere under /var/vcap/store as currently this script dumps the CSV file under /home/vcap which is the root OS disk and could cause the VM to crash if root runs out of disk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants