- Elasticsearch Guide: other versions:
- Elasticsearch introduction
- Getting started with Elasticsearch
- Set up Elasticsearch
- Installing Elasticsearch
- Configuring Elasticsearch
- Important Elasticsearch configuration
- Important System Configuration
- Bootstrap Checks
- Heap size check
- File descriptor check
- Memory lock check
- Maximum number of threads check
- Max file size check
- Maximum size virtual memory check
- Maximum map count check
- Client JVM check
- Use serial collector check
- System call filter check
- OnError and OnOutOfMemoryError checks
- Early-access check
- G1GC check
- All permission check
- Discovery configuration check
- Starting Elasticsearch
- Stopping Elasticsearch
- Adding nodes to your cluster
- Full-cluster restart and rolling restart
- Set up X-Pack
- Configuring X-Pack Java Clients
- Bootstrap Checks for X-Pack
- Upgrade Elasticsearch
- Aggregations
- Metrics Aggregations
- Avg Aggregation
- Weighted Avg Aggregation
- Cardinality Aggregation
- Extended Stats Aggregation
- Geo Bounds Aggregation
- Geo Centroid Aggregation
- Max Aggregation
- Min Aggregation
- Percentiles Aggregation
- Percentile Ranks Aggregation
- Scripted Metric Aggregation
- Stats Aggregation
- Sum Aggregation
- Top Hits Aggregation
- Value Count Aggregation
- Median Absolute Deviation Aggregation
- Bucket Aggregations
- Adjacency Matrix Aggregation
- Auto-interval Date Histogram Aggregation
- Children Aggregation
- Composite Aggregation
- Date histogram aggregation
- Date Range Aggregation
- Diversified Sampler Aggregation
- Filter Aggregation
- Filters Aggregation
- Geo Distance Aggregation
- GeoHash grid Aggregation
- GeoTile Grid Aggregation
- Global Aggregation
- Histogram Aggregation
- IP Range Aggregation
- Missing Aggregation
- Nested Aggregation
- Parent Aggregation
- Range Aggregation
- Rare Terms Aggregation
- Reverse nested Aggregation
- Sampler Aggregation
- Significant Terms Aggregation
- Significant Text Aggregation
- Terms Aggregation
- Subtleties of bucketing range fields
- Pipeline Aggregations
- Avg Bucket Aggregation
- Derivative Aggregation
- Max Bucket Aggregation
- Min Bucket Aggregation
- Sum Bucket Aggregation
- Stats Bucket Aggregation
- Extended Stats Bucket Aggregation
- Percentiles Bucket Aggregation
- Moving Average Aggregation
- Moving Function Aggregation
- Cumulative Sum Aggregation
- Cumulative Cardinality Aggregation
- Bucket Script Aggregation
- Bucket Selector Aggregation
- Bucket Sort Aggregation
- Serial Differencing Aggregation
- Matrix Aggregations
- Caching heavy aggregations
- Returning only aggregation results
- Aggregation Metadata
- Returning the type of the aggregation
- Metrics Aggregations
- Query DSL
- Search across clusters
- Scripting
- Mapping
- Analysis
- Anatomy of an analyzer
- Testing analyzers
- Analyzers
- Normalizers
- Tokenizers
- Char Group Tokenizer
- Classic Tokenizer
- Edge n-gram tokenizer
- Keyword Tokenizer
- Letter Tokenizer
- Lowercase Tokenizer
- N-gram tokenizer
- Path Hierarchy Tokenizer
- Path Hierarchy Tokenizer Examples
- Pattern Tokenizer
- Simple Pattern Tokenizer
- Simple Pattern Split Tokenizer
- Standard Tokenizer
- Thai Tokenizer
- UAX URL Email Tokenizer
- Whitespace Tokenizer
- Token Filters
- Apostrophe
- ASCII folding
- CJK bigram
- CJK width
- Classic
- Common grams
- Conditional
- Decimal digit
- Delimited payload
- Dictionary decompounder
- Edge n-gram
- Elision
- Fingerprint
- Flatten Graph Token Filter
- Hunspell Token Filter
- Hyphenation decompounder
- Keep types
- Keep words
- Keyword Marker Token Filter
- Keyword Repeat Token Filter
- KStem Token Filter
- Length Token Filter
- Limit Token Count Token Filter
- Lowercase Token Filter
- MinHash Token Filter
- Multiplexer Token Filter
- N-gram
- Normalization Token Filter
- Pattern Capture Token Filter
- Pattern Replace Token Filter
- Phonetic Token Filter
- Porter Stem Token Filter
- Predicate Token Filter Script
- Remove Duplicates Token Filter
- Reverse Token Filter
- Shingle Token Filter
- Snowball Token Filter
- Stemmer Token Filter
- Stemmer Override Token Filter
- Stop Token Filter
- Synonym Token Filter
- Synonym Graph Token Filter
- Trim Token Filter
- Truncate Token Filter
- Unique Token Filter
- Uppercase Token Filter
- Word Delimiter Token Filter
- Word Delimiter Graph Token Filter
- Character Filters
- Modules
- Index modules
- Ingest node
- Pipeline Definition
- Accessing Data in Pipelines
- Conditional Execution in Pipelines
- Handling Failures in Pipelines
- Processors
- Append Processor
- Bytes Processor
- Circle Processor
- Convert Processor
- Date Processor
- Date Index Name Processor
- Dissect Processor
- Dot Expander Processor
- Drop Processor
- Fail Processor
- Foreach Processor
- GeoIP Processor
- Grok Processor
- Gsub Processor
- HTML Strip Processor
- Join Processor
- JSON Processor
- KV Processor
- Lowercase Processor
- Pipeline Processor
- Remove Processor
- Rename Processor
- Script Processor
- Set Processor
- Set Security User Processor
- Split Processor
- Sort Processor
- Trim Processor
- Uppercase Processor
- URL Decode Processor
- User Agent processor
- Managing the index lifecycle
- Getting started with index lifecycle management
- Policy phases and actions
- Set up index lifecycle management policy
- Using policies to manage index rollover
- Update policy
- Index lifecycle error handling
- Restoring snapshots of managed indices
- Start and stop index lifecycle management
- Using ILM with existing indices
- Getting started with snapshot lifecycle management
- SQL access
- Overview
- Getting Started with SQL
- Conventions and Terminology
- Security
- SQL REST API
- SQL Translate API
- SQL CLI
- SQL JDBC
- SQL ODBC
- SQL Client Applications
- SQL Language
- Functions and Operators
- Comparison Operators
- Logical Operators
- Math Operators
- Cast Operators
- LIKE and RLIKE Operators
- Aggregate Functions
- Grouping Functions
- Date/Time and Interval Functions and Operators
- Full-Text Search Functions
- Mathematical Functions
- String Functions
- Type Conversion Functions
- Geo Functions
- Conditional Functions And Expressions
- System Functions
- Reserved keywords
- SQL Limitations
- Monitor a cluster
- Frozen indices
- Roll up or transform your data
- Set up a cluster for high availability
- Secure a cluster
- Overview
- Configuring security
- User authentication
- Built-in users
- Internal users
- Token-based authentication services
- Realms
- Realm chains
- Active Directory user authentication
- File-based user authentication
- LDAP user authentication
- Native user authentication
- OpenID Connect authentication
- PKI user authentication
- SAML authentication
- Kerberos authentication
- Integrating with other authentication systems
- Enabling anonymous access
- Controlling the user cache
- Configuring SAML single-sign-on on the Elastic Stack
- Configuring single sign-on to the Elastic Stack using OpenID Connect
- User authorization
- Built-in roles
- Defining roles
- Security privileges
- Document level security
- Field level security
- Granting privileges for indices and aliases
- Mapping users and groups to roles
- Setting up field and document level security
- Submitting requests on behalf of other users
- Configuring authorization delegation
- Customizing roles and authorization
- Enabling audit logging
- Encrypting communications
- Restricting connections with IP filtering
- Cross cluster search, clients, and integrations
- Tutorial: Getting started with security
- Tutorial: Encrypting communications
- Troubleshooting
- Some settings are not returned via the nodes settings API
- Authorization exceptions
- Users command fails due to extra arguments
- Users are frequently locked out of Active Directory
- Certificate verification fails for curl on Mac
- SSLHandshakeException causes connections to fail
- Common SSL/TLS exceptions
- Common Kerberos exceptions
- Common SAML issues
- Internal Server Error in Kibana
- Setup-passwords command fails due to connection failure
- Failures due to relocation of the configuration files
- Limitations
- Alerting on cluster and index events
- Command line tools
- How To
- Testing
- Glossary of terms
- REST APIs
- API conventions
- cat APIs
- Cluster APIs
- Cross-cluster replication APIs
- Document APIs
- Explore API
- Index APIs
- Add index alias
- Analyze
- Clear cache
- Clone index
- Close index
- Create index
- Delete index
- Delete index alias
- Delete index template
- Flush
- Force merge
- Freeze index
- Get field mapping
- Get index
- Get index alias
- Get index settings
- Get index template
- Get mapping
- Index alias exists
- Index exists
- Index recovery
- Index segments
- Index shard stores
- Index stats
- Index template exists
- Open index
- Put index template
- Put mapping
- Refresh
- Rollover index
- Shrink index
- Split index
- Synced flush
- Type exists
- Unfreeze index
- Update index alias
- Update index settings
- Index lifecycle management API
- Ingest APIs
- Info API
- Licensing APIs
- Machine learning anomaly detection APIs
- Add events to calendar
- Add jobs to calendar
- Close jobs
- Create jobs
- Create calendar
- Create datafeeds
- Create filter
- Delete calendar
- Delete datafeeds
- Delete events from calendar
- Delete filter
- Delete forecast
- Delete jobs
- Delete jobs from calendar
- Delete model snapshots
- Delete expired data
- Find file structure
- Flush jobs
- Forecast jobs
- Get buckets
- Get calendars
- Get categories
- Get datafeeds
- Get datafeed statistics
- Get influencers
- Get jobs
- Get job statistics
- Get machine learning info
- Get model snapshots
- Get overall buckets
- Get scheduled events
- Get filters
- Get records
- Open jobs
- Post data to jobs
- Preview datafeeds
- Revert model snapshots
- Set upgrade mode
- Start datafeeds
- Stop datafeeds
- Update datafeeds
- Update filter
- Update jobs
- Update model snapshots
- Machine learning data frame analytics APIs
- Migration APIs
- Reload search analyzers
- Rollup APIs
- Search APIs
- Security APIs
- Authenticate
- Change passwords
- Clear cache
- Clear roles cache
- Create API keys
- Create or update application privileges
- Create or update role mappings
- Create or update roles
- Create or update users
- Delegate PKI authentication
- Delete application privileges
- Delete role mappings
- Delete roles
- Delete users
- Disable users
- Enable users
- Get API key information
- Get application privileges
- Get builtin privileges
- Get role mappings
- Get roles
- Get token
- Get users
- Has privileges
- Invalidate API key
- Invalidate token
- OpenID Connect Prepare Authentication API
- OpenID Connect authenticate API
- OpenID Connect logout API
- SSL certificate
- Snapshot lifecycle management API
- Transform APIs
- Watcher APIs
- Definitions
- Release highlights
- Breaking changes
- Release notes
- Elasticsearch version 7.4.2
- Elasticsearch version 7.4.1
- Elasticsearch version 7.4.0
- Elasticsearch version 7.3.2
- Elasticsearch version 7.3.1
- Elasticsearch version 7.3.0
- Elasticsearch version 7.2.1
- Elasticsearch version 7.2.0
- Elasticsearch version 7.1.1
- Elasticsearch version 7.1.0
- Elasticsearch version 7.0.0
- Elasticsearch version 7.0.0-rc2
- Elasticsearch version 7.0.0-rc1
- Elasticsearch version 7.0.0-beta1
- Elasticsearch version 7.0.0-alpha2
- Elasticsearch version 7.0.0-alpha1
Job statistics
editJob statistics
editThe get job statistics API provides information about the operational progress of a job.
-
assignment_explanation
- (string) For open jobs only, contains messages relating to the selection of a node to run the job.
-
data_counts
- (object) An object that describes the number of records processed and any related error counts. See data counts objects.
-
job_id
- (string) A unique identifier for the job.
-
model_size_stats
- (object) An object that provides information about the size and contents of the model. See model size stats objects.
-
forecasts_stats
- (object) An object that provides statistical information about forecasts of this job. See forecasts stats objects.
-
timing_stats
- (object) An object that provides statistical information about timing aspect of this job. See timing stats objects.
-
node
- (object) For open jobs only, contains information about the node where the job runs. See node object.
-
open_time
-
(string) For open jobs only, the elapsed time for which the job has been open.
For example,
28746386s
. -
state
-
(string) The status of the job, which can be one of the following values:
-
opened
- The job is available to receive and process data.
-
closed
- The job finished successfully with its model state persisted. The job must be opened before it can accept further data.
-
closing
- The job close action is in progress and has not yet completed. A closing job cannot accept further data.
-
failed
- The job did not finish successfully due to an error. This situation can occur due to invalid input data. If the job had irrevocably failed, it must be force closed and then deleted. If the datafeed can be corrected, the job can be closed and then re-opened.
-
opening
- The job open action is in progress and has not yet completed.
-
Data Counts Objects
editThe data_counts
object describes the number of records processed
and any related error counts.
The data_count
values are cumulative for the lifetime of a job. If a model snapshot is reverted
or old results are deleted, the job counts are not reset.
-
bucket_count
- (long) The number of bucket results produced by the job.
-
earliest_record_timestamp
- (date) The timestamp of the earliest chronologically input document.
-
empty_bucket_count
-
(long) The number of buckets which did not contain any data. If your data contains many
empty buckets, consider increasing your
bucket_span
or using functions that are tolerant to gaps in data such asmean
,non_null_sum
ornon_zero_count
. -
input_bytes
- (long) The number of raw bytes read by the job.
-
input_field_count
- (long) The total number of record fields read by the job. This count includes fields that are not used in the analysis.
-
input_record_count
- (long) The number of data records read by the job.
-
invalid_date_count
- (long) The number of records with either a missing date field or a date that could not be parsed.
-
job_id
- (string) A unique identifier for the job.
-
last_data_time
- (date) The timestamp at which data was last analyzed, according to server time.
-
latest_empty_bucket_timestamp
- (date) The timestamp of the last bucket that did not contain any data.
-
latest_record_timestamp
- (date) The timestamp of the latest chronologically input document.
-
latest_sparse_bucket_timestamp
- (date) The timestamp of the last bucket that was considered sparse.
-
missing_field_count
-
(long) The number of records that are missing a field that the job is
configured to analyze. Records with missing fields are still processed because
it is possible that not all fields are missing. The value of
processed_record_count
includes this count.
If you are using datafeeds or posting data to the job in JSON format, a
high missing_field_count
is often not an indication of data issues. It is not
necessarily a cause for concern.
-
out_of_order_timestamp_count
- (long) The number of records that are out of time sequence and outside of the latency window. This information is applicable only when you provide data to the job by using the post data API. These out of order records are discarded, since jobs require time series data to be in ascending chronological order.
-
processed_field_count
- (long) The total number of fields in all the records that have been processed by the job. Only fields that are specified in the detector configuration object contribute to this count. The time stamp is not included in this count.
-
processed_record_count
-
(long) The number of records that have been processed by the job.
This value includes records with missing fields, since they are nonetheless
analyzed.
If you use datafeeds and have aggregations in your search query, theprocessed_record_count
will be the number of aggregated records processed, not the number of Elasticsearch documents. -
sparse_bucket_count
-
(long) The number of buckets that contained few data points compared to the
expected number of data points. If your data contains many sparse buckets,
consider using a longer
bucket_span
.
Model Size Stats Objects
editThe model_size_stats
object has the following properties:
-
bucket_allocation_failures_count
-
(long) The number of buckets for which new entities in incoming data were not
processed due to insufficient model memory. This situation is also signified
by a
hard_limit: memory_status
property value. -
job_id
- (string) A numerical character string that uniquely identifies the job.
-
log_time
-
(date) The timestamp of the
model_size_stats
according to server time. -
memory_status
-
(string) The status of the mathematical models. This property can have one of the following values:
-
ok
- The models stayed below the configured value.
-
soft_limit
- The models used more than 60% of the configured memory limit and older unused models will be pruned to free up space.
-
hard_limit
- The models used more space than the configured memory limit. As a result, not all incoming data was processed.
-
-
model_bytes
- (long) The number of bytes of memory used by the models. This is the maximum value since the last time the model was persisted. If the job is closed, this value indicates the latest size.
-
result_type
- (string) For internal use. The type of result.
-
total_by_field_count
-
(long) The number of
by
field values that were analyzed by the models.+
The by
field values are counted separately for each detector and partition.
-
total_over_field_count
-
(long) The number of
over
field values that were analyzed by the models.+
The over
field values are counted separately for each detector and partition.
-
total_partition_field_count
-
(long) The number of
partition
field values that were analyzed by the models. -
timestamp
-
(date) The timestamp of the
model_size_stats
according to the timestamp of the data.
Forecasts Stats Objects
editThe forecasts_stats
object shows statistics about forecasts. It has the following properties:
-
total
- (long) The number of forecasts currently available for this model.
-
forecasted_jobs
- (long) The number of jobs that have at least one forecast.
-
memory_bytes
- (object) Statistics about the memory usage: minimum, maximum, average and total.
-
records
- (object) Statistics about the number of forecast records: minimum, maximum, average and total.
-
processing_time_ms
- (object) Statistics about the forecast runtime in milliseconds: minimum, maximum, average and total.
-
status
- (object) Counts per forecast status, for example: {"finished" : 2}.
memory_bytes
, records
, processing_time_ms
and status
require at least 1 forecast, otherwise
these fields are omitted.
Timing Stats Objects
editThe timing_stats
object shows timing-related statistics about the job’s progress. It has the following properties:
-
job_id
- (string) A numerical character string that uniquely identifies the job.
-
bucket_count
- (long) The number of buckets processed.
-
minimum_bucket_processing_time_ms
- (double) Minimum among all bucket processing times in milliseconds.
-
maximum_bucket_processing_time_ms
- (double) Maximum among all bucket processing times in milliseconds.
-
average_bucket_processing_time_ms
- (double) Average of all bucket processing times in milliseconds.
-
exponential_average_bucket_processing_time_ms
- (double) Exponential moving average of all bucket processing times in milliseconds.
Node Objects
editThe node
objects contains properties for the node that runs the job.
This information is available only for open jobs.
-
id
- (string) The unique identifier of the node.
-
name
- (string) The node name.
-
ephemeral_id
- (string) The ephemeral id of the node.
-
transport_address
- (string) The host and port where transport HTTP connections are accepted.
-
attributes
- (object) For example, {"ml.machine_memory": "17179869184"}.
On this page