@@ -60,66 +60,88 @@ data:
6060 jaeger:
6161 enable_endpoint: ${QW_ENABLE_JAEGER_ENDPOINT:-true}
6262
63- log-indexes.tpl : |
64- version: 0.9
65- template_id: "logs"
66- description: "kubernetes container logs"
67-
68- index_id_patterns:
69- - {{ .Values.logIndexPrefix }}*
70-
71- priority: 100
72- doc_mapping:
73- mode: dynamic
74- dynamic_mapping:
75- indexed: true
76- stored: true
77- tokenizer: raw
78- record: basic
79- expand_dots: true
80- fast: true
81- field_mappings:
82- - name: log
83- type: text
84- tokenizer: default
85- record: position
86- - name: timestamp
87- type: datetime
88- description: Time at which the event was emitted
89- input_formats:
90- - rfc3339
91- - unix_timestamp
92- output_format: unix_timestamp_secs
93- stored: true
94- indexed: true
95- fast: true
96- fast_precision: milliseconds
97- - name: kubernetes
98- type: object
99- field_mappings:
100- - name: namespace_name
101- type: text
102- tokenizer: raw
103- fast: true
104- - name: pod_name
105- type: text
106- tokenizer: raw
107- fast: true
108- - name: container_name
109- type: text
110- tokenizer: raw
111- fast: true
112- - name: container_image
113- type: text
114- tokenizer: raw
115- fast: true
116- tag_fields: ["kubernetes.namespace_name"]
117- timestamp_field: timestamp
118- index_field_presence: true
119-
120- search_settings:
121- default_search_fields: [log]
122-
123- retention:
124- period: {{ .Values.logIndexRetention }}
125- schedule: daily
63+ log-indexes-template.json : |
64+ {
65+ "version": "0.9",
66+ "template_id": "logs",
67+ "description": "kubernetes container logs",
68+ "index_id_patterns": [
69+ "{{ .Values.logIndexPrefix }}*"
70+ ],
71+ "priority": 100,
72+ "doc_mapping": {
73+ "mode": "dynamic",
74+ "dynamic_mapping": {
75+ "indexed": true,
76+ "stored": true,
77+ "tokenizer": "raw",
78+ "record": "basic",
79+ "expand_dots": true,
80+ "fast": true
81+ },
82+ "field_mappings": [{
83+ "name": "log",
84+ "type": "text",
85+ "tokenizer": "default",
86+ "record": "position"
87+ },
88+ {
89+ "name": "timestamp",
90+ "type": "datetime",
91+ "description": "Time at which the event was emitted",
92+ "input_formats": [
93+ "rfc3339",
94+ "unix_timestamp"
95+ ],
96+ "output_format": "unix_timestamp_secs",
97+ "stored": true,
98+ "indexed": true,
99+ "fast": true,
100+ "fast_precision": "milliseconds"
101+ },
102+ {
103+ "name": "kubernetes",
104+ "type": "object",
105+ "field_mappings": [{
106+ "name": "namespace_name",
107+ "type": "text",
108+ "tokenizer": "raw",
109+ "fast": true
110+ },
111+ {
112+ "name": "pod_name",
113+ "type": "text",
114+ "tokenizer": "raw",
115+ "fast": true
116+ },
117+ {
118+ "name": "container_name",
119+ "type": "text",
120+ "tokenizer": "raw",
121+ "fast": true
122+ },
123+ {
124+ "name": "container_image",
125+ "type": "text",
126+ "tokenizer": "raw",
127+ "fast": true
128+ }
129+ ]
130+ }
131+ ],
132+ "tag_fields": [
133+ "kubernetes.namespace_name"
134+ ],
135+ "timestamp_field": "timestamp",
136+ "index_field_presence": true
137+ },
138+ "search_settings": {
139+ "default_search_fields": [
140+ "log"
141+ ]
142+ },
143+ "retention": {
144+ "period": "{{ .Values.logIndexRetention }}",
145+ "schedule": "daily"
146+ }
147+ }
0 commit comments