This repository was archived by the owner on Dec 14, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "index_patterns" : [
3+ " apigw-trace-*"
4+ ],
5+ "settings" : {
6+ "number_of_shards" : 5 ,
7+ "number_of_replicas" : 2
8+ },
9+ "mappings" : {
10+ "dynamic" : false ,
11+ "properties" : {
12+ "@timestamp" : {
13+ "type" : " date"
14+ },
15+ "correlationId" : {
16+ "type" : " keyword"
17+ },
18+ "level" : {
19+ "type" : " keyword"
20+ },
21+ "message" : {
22+ "type" : " text" ,
23+ "norms" : false
24+ }
25+ }
26+ }
27+ }
Original file line number Diff line number Diff line change @@ -160,11 +160,15 @@ output {
160160 elasticsearch {
161161 hosts => "elasticsearch1:9200"
162162 index => "apigw-trace-messages-%{+YYYY.MM.dd}"
163+ template => "${HOME}/config/trace_messages_index_template.json"
164+ template_overwrite => true
163165 }
164166 } else if [logtype] == "trace" {
165167 elasticsearch {
166168 hosts => "elasticsearch1:9200"
167- index => "apigw-traffic-trace-%{+YYYY.MM.dd}"
169+ index => "apigw-trace-traffic-%{+YYYY.MM.dd}"
170+ template => "${HOME}/config/trace_messages_index_template.json"
171+ template_overwrite => true
168172 }
169173 } else if [type] == 'errorEvent' {
170174 elasticsearch {
You can’t perform that action at this time.
0 commit comments