elasticsearch-anomaly-detection
Skill by elastic
Creates and manages Elastic ML anomaly detection jobs and datafeeds through the Elasticsearch ML REST API. Built for users who need to detect spikes or drops in event volume on an index or data stream.
Install elasticsearch-anomaly-detection
Built from the published package, never by AI.
git clone --depth 1 https://github.com/elastic/agent-skills /tmp/agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agent-skills/skills/elasticsearch/elasticsearch-anomaly-detection ~/.claude/skills/elasticsearch-anomaly-detectionRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install elasticsearch-anomaly-detection in Claude Code
git clone --depth 1 https://github.com/elastic/agent-skills /tmp/agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agent-skills/skills/elasticsearch/elasticsearch-anomaly-detection ~/.gemini/antigravity-cli/skills/elasticsearch-anomaly-detectionAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install elasticsearch-anomaly-detection in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The elasticsearch-anomaly-detection skill creates and manages Elastic ML anomaly detection jobs through the ML REST API, using the elastic CLI. It chooses a count-family detector based on whether the user wants to catch spikes or drops in event volume, sets the bucket span and time field, and points a datafeed at the target index.
The skill follows a fixed order: create the job, create the datafeed, open the job, then start the datafeed. It checks the opened and started states from stats before reporting success, and it describes stopping the datafeed and closing the job in reverse order. It is intended for users who set up ML anomaly detection on an index or data stream. Entity-level analysis and advanced tuning are covered in a separate reference file.
Written from the project's SKILL.md and checked against it.
What it can do
- Discover target indexLists candidate indices and fetches field mappings to confirm the index and time field.
- Choose detector directionMaps spike or drop wording to high_count, low_count, or count detectors.
- Create anomaly detection jobSets bucket span, time field, and detectors, then creates the job.
- Create datafeedCreates a datafeed linked to the job and target index with a query.
- Open job and start datafeedRuns the required open-then-start sequence for a new job.
- Confirm running stateChecks job and datafeed stats for the opened and started states.
- Stop and close jobsStops the datafeed first, then closes the job.
What you need
- Elastic CLI installed
- Elasticsearch 8.x or later, or Elastic Cloud Serverless with ML
- manage_ml privilege
- Platinum-equivalent license for self-managed clusters
Try asking
- Set up a high_count anomaly job on my logs-* index for event spikes
- Create a low_count ML job to alert when traffic stops on web-logs
- Stop the datafeed and close the anomaly job named checkout-volume
Good to know
- Requires a Platinum-equivalent license on self-managed clusters.
- The caller needs the manage_ml privilege to create and manage jobs.
- Bucket span, detectors, and time field cannot be changed after job creation.
- Interpreting anomaly scores is handled by a different skill.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/elasticsearch/elasticsearch-anomaly-detection/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB -
references/anomaly-detection-reference.md6 KB
Alternatives to elasticsearch-anomaly-detection
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
elasticsearch-anomaly-detection: common questions
What privilege does this skill need?
The caller needs the manage_ml privilege to create and manage anomaly detection jobs.
Can this skill explain anomaly scores?
No. The source says score and influencer interpretation is handled by elasticsearch-anomaly-detection-explainer.
Which detector should I use to catch traffic drops?
The source says drops, outages, and absence of events map to low_count, while spikes map to high_count.
How do I install elasticsearch-anomaly-detection?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is elasticsearch-anomaly-detection free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is elasticsearch-anomaly-detection safe to use?
It scores 84 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to elasticsearch-anomaly-detection?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
