forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the Elaticsearch index as pattern
This transforms the fixed index into a pattern, somehow similar to how Logstash is doing it. However, logstash is using the Joda format, for which we don't have Go libraries. So instead of writing `filebeat-%{+YYYY.MM.dd}` you would need to write `filebeat-%{+2006.01.02}` (i.e. layout by example). Because the Go layouts don't support ISO 8601 weeks, in order to support weekly indices, the special `isoweek` keyword was introduced, which is the equivalent of Joda `xxxx.ww`. The layout `filebeat-%{+isoweek}` results in `filebeat-2016.29` for today. Part of elastic#2074. Closes elastic#921.
- Loading branch information
Tudor Golubenco
committed
Jul 21, 2016
1 parent
245dd0a
commit 42d8c57
Showing
3 changed files
with
98 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters