Skip to content

Commit

Permalink
Merge pull request #1544 from ApolloLV/patch-1
Browse files Browse the repository at this point in the history
Add timestamp_field to the documentation
  • Loading branch information
jertel authored Sep 28, 2024
2 parents 46cb90d + bd1689a commit 2a2fb59
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- [Docs] Mention the two available Spike-rule metrics that are add into the match record - [#1542](https://github.com/jertel/elastalert2/pull/1542) - @ulmako
- [OpsGenie] Corrected spelling of the `opsgenie_default_receipients` configuration option to `opsgenie_default_recipients`. Both variations will continue to work and a warning message will notify affected users. [#1539](https://github.com/jertel/elastalert2/pull/1539) - @lstyles
- [OpsGenie] Prevent templated `opsgenie_teams` and `opsgenie_recipients` from being overwritten with evaluated values first time an alert is sent. [#1540](https://github.com/jertel/elastalert2/issues/1540) [#1539](https://github.com/jertel/elastalert2/pull/1539) - @lstyles
- [Docs] Add missing documentation of the timestamp_field option - [#1544](https://github.com/jertel/elastalert2/pull/1544) - @apollolv

# 2.20.0

Expand Down
10 changes: 10 additions & 0 deletions docs/source/ruletypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ Rule Configuration Cheat Sheet
+--------------------------------------------------------------+ +
| ``buffer_time`` (time, default from config.yaml) | |
+--------------------------------------------------------------+ |
| ``timestamp_field`` (string, default "@timestamp") | |
+--------------------------------------------------------------+ |
| ``timestamp_type`` (string, default iso) | |
+--------------------------------------------------------------+ |
| ``timestamp_format`` (string, default "%Y-%m-%dT%H:%M:%SZ") | |
Expand Down Expand Up @@ -971,6 +973,14 @@ summary_suffix

``summary_suffix``: Specify a suffix string, which will be added after the aggregation summary table. This string is currently not subject to any formatting.

timestamp_field
^^^^^^^^^^^^^^^

``timestamp_field``: Specify the name of the document field containing the timestamp.
By default, the field ``@timestamp`` is used to query Elasticsearch.
If ``timestamp_field`` is set, this date field will be considered whenever querying, filtering and aggregating based on timestamps.
(Optional, string, default @timestamp).

timestamp_type
^^^^^^^^^^^^^^

Expand Down

0 comments on commit 2a2fb59

Please sign in to comment.