Skip to content

Add Elasticsearch Anomaly Detection Job State Export and Import scripts#817

Merged
pickypg merged 1 commit intoelastic:mainfrom
valeriy42:share-ad-job-state
Apr 25, 2025
Merged

Add Elasticsearch Anomaly Detection Job State Export and Import scripts#817
pickypg merged 1 commit intoelastic:mainfrom
valeriy42:share-ad-job-state

Conversation

@valeriy42
Copy link
Copy Markdown
Collaborator

This pull request adds two Python scripts for exporting and importing anomaly detection job states in Elasticsearch.

The export script extracts job states, configurations, annotations, and input data from Elasticsearch and packages them into a tar.gz archive.

The import script reads the archived data and restores the job state and configuration in Elasticsearch.

@valeriy42 valeriy42 requested a review from pickypg as a code owner April 11, 2025 12:55

Both scripts can be configured using command-line arguments as detailed in the Usage section. Ensure that you have the necessary permissions and correct URLs when connecting to your Elasticsearch cluster.

## Security Considerations
Copy link
Copy Markdown
Contributor

@ppf2 ppf2 Apr 24, 2025

Choose a reason for hiding this comment

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

Same comment as internal version. Thx!

Copy link
Copy Markdown
Member

@pickypg pickypg left a comment

Choose a reason for hiding this comment

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

LGTM. I am taking for granted that these work and it's worth highlighting for anyone that comes across these that they are not automatically invoked by the diagnostic, rather they come along for the ride for users to invoke.

@pickypg pickypg merged commit abcc9ff into elastic:main Apr 25, 2025
2 checks passed
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.

3 participants