Skip to content

Commit

Permalink
Merge pull request #9 from arruko/feature/jhg/ANS-001
Browse files Browse the repository at this point in the history
Change elasticsearch template output to add index custom parms
  • Loading branch information
arruko authored Nov 15, 2018
2 parents 198ab46 + 7285440 commit 65bca45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/03-elasticsearch-output.conf.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
output {
elasticsearch {
hosts => {{ logstash_elasticsearch_hosts | to_json }}
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
index => "%{[fields][index_pool]}-%{[fields][index_env]}-%{[fields][index_doc_type]}-%{+YYYY.MM.dd}"
document_type => "%{[fields][index_doc_type]}"
}
}

0 comments on commit 65bca45

Please sign in to comment.