Skip to content

Commit

Permalink
Update date math section to use y instead of Y (#1510)
Browse files Browse the repository at this point in the history
elasticsearch has changed to use y instead of Y as it migrated to use java.time
  • Loading branch information
pgomulka authored and untergeek committed Feb 2, 2024
1 parent 5b60d24 commit c857aa5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/asciidoc/inc_datemath.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ A date math name takes the following form:
|===
|static_name| is the static text part of the name
|date_math_expr| is a dynamic date math expression that computes the date dynamically
|date_format|is the optional format in which the computed date should be rendered. Defaults to `YYYY.MM.dd`.
|date_format|is the optional format in which the computed date should be rendered. Defaults to `yyyy.MM.dd`.
|time_zone|is the optional time zone . Defaults to `utc`.
|===

Expand All @@ -22,7 +22,7 @@ The following example shows different forms of date math names and the final for
|Expression| Resolves to
|<logstash-{now/d}>| logstash-2024.03.22
|<logstash-{now/M}>| logstash-2024.03.01
|<logstash-{now/M{YYYY.MM}}>| logstash-2024.03
|<logstash-{now/M-1M{YYYY.MM}}>| logstash-2024.02
|<logstash-{now/d{YYYY.MM.dd\|+12:00}}> | logstash-2024.03.23
|===
|<logstash-{now/M{yyyy.MM}}>| logstash-2024.03
|<logstash-{now/M-1M{yyyy.MM}}>| logstash-2024.02
|<logstash-{now/d{yyyy.MM.dd\|+12:00}}> | logstash-2024.03.23
|===

0 comments on commit c857aa5

Please sign in to comment.