Skip to content

Commit

Permalink
Added sufix to index names
Browse files Browse the repository at this point in the history
According to the oficials docs:
```
The rollover API supports date math, but requires the index name to end with a dash followed by a number, e.g. logstash-2016.02.03-1 which is incremented every time the index is rolled over.
```
https://www.elastic.co/guide/en/elasticsearch/reference/6.5/indices-rollover-index.html

We want to try the rollover API, so we need to change the index name
first. A sufix was added to be complient with what the oficials docs
say.
  • Loading branch information
antoniocascais committed Feb 22, 2019
1 parent 2be286a commit b7739ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest/operations/pipelines/cf-apps-es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@
user => "${ES_USER}"
password => "${ES_PASSWORD}"
sniffing => false
index => "${ES_INDEX_PREFIX:logs}-%{[@index_level]}-${ES_VERSION:v0.0}-%{+YYYY.MM.dd}"
index => "${ES_INDEX_PREFIX:logs}-%{[@index_level]}-${ES_VERSION:v0.0}-%{+YYYY.MM.dd}-1"
http_compression => true
manage_template => false
id => "output-es/${JOB_FULL_AZ_DEPLOYMENT}"
Expand Down
2 changes: 1 addition & 1 deletion manifest/operations/pipelines/cf-apps-es/output-50-es.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ output {
user => "${ES_USER}"
password => "${ES_PASSWORD}"
sniffing => false
index => "${ES_INDEX_PREFIX:logs}-%{[@index_level]}-${ES_VERSION:v0.0}-%{+YYYY.MM.dd}"
index => "${ES_INDEX_PREFIX:logs}-%{[@index_level]}-${ES_VERSION:v0.0}-%{+YYYY.MM.dd}-1"
http_compression => true
manage_template => false
id => "output-es/${JOB_FULL_AZ_DEPLOYMENT}"
Expand Down

0 comments on commit b7739ec

Please sign in to comment.