Compound

Example Configuration

Filter by log level and reformat

Config
Input
Output
1[transforms.my_transform_id]
20 = "["
31 = "t"
42 = "r"
53 = "a"
64 = "n"
75 = "s"
86 = "f"
97 = "o"
108 = "r"
119 = "m"
1210 = "s"
1311 = "."
1412 = "c"
1513 = "h"
1614 = "a"
1715 = "i"
1816 = "n"
1917 = "]"
2018 = """
21
22"""
2319 = "t"
2420 = "y"
2521 = "p"
2622 = "e"
2723 = " "
2824 = "="
2925 = " "
3026 = '"'
3127 = "c"
3228 = "o"
3329 = "m"
3430 = "p"
3531 = "o"
3632 = "u"
3733 = "n"
3834 = "d"
3935 = '"'
4036 = """
41
42"""
4337 = """
44
45"""
4638 = "["
4739 = "t"
4840 = "r"
4941 = "a"
5042 = "n"
5143 = "s"
5244 = "f"
5345 = "o"
5446 = "r"
5547 = "m"
5648 = "s"
5749 = "."
5850 = "p"
5951 = "i"
6052 = "p"
6153 = "e"
6254 = "l"
6355 = "i"
6456 = "n"
6557 = "e"
6658 = "s"
6759 = "."
6860 = "n"
6961 = "e"
7062 = "s"
7163 = "t"
7264 = "e"
7365 = "d"
7466 = "."
7567 = "s"
7668 = "t"
7769 = "e"
7870 = "p"
7971 = "_"
8072 = "1"
8173 = "]"
8274 = """
83
84"""
8575 = "t"
8676 = "y"
8777 = "p"
8878 = "e"
8979 = " "
9080 = "="
9181 = " "
9282 = '"'
9383 = "f"
9484 = "i"
9585 = "l"
9686 = "t"
9787 = "e"
9888 = "r"
9989 = '"'
10090 = """
101
102"""
10391 = "c"
10492 = "o"
10593 = "n"
10694 = "d"
10795 = "i"
10896 = "t"
10997 = "i"
11098 = "o"
11199 = "n"
112100 = " "
113101 = "="
114102 = " "
115103 = "'"
116104 = "."
117105 = "l"
118106 = "e"
119107 = "v"
120108 = "e"
121109 = "l"
122110 = " "
123111 = "="
124112 = "="
125113 = " "
126114 = '"'
127115 = "d"
128116 = "e"
129117 = "b"
130118 = "u"
131119 = "g"
132120 = '"'
133121 = "'"
134122 = """
135
136"""
137123 = """
138
139"""
140124 = "["
141125 = "t"
142126 = "r"
143127 = "a"
144128 = "n"
145129 = "s"
146130 = "f"
147131 = "o"
148132 = "r"
149133 = "m"
150134 = "s"
151135 = "."
152136 = "p"
153137 = "i"
154138 = "p"
155139 = "e"
156140 = "l"
157141 = "i"
158142 = "n"
159143 = "e"
160144 = "s"
161145 = "."
162146 = "n"
163147 = "e"
164148 = "s"
165149 = "t"
166150 = "e"
167151 = "d"
168152 = "."
169153 = "s"
170154 = "t"
171155 = "e"
172156 = "p"
173157 = "_"
174158 = "2"
175159 = "]"
176160 = """
177
178"""
179161 = "t"
180162 = "y"
181163 = "p"
182164 = "e"
183165 = " "
184166 = "="
185167 = " "
186168 = '"'
187169 = "r"
188170 = "e"
189171 = "m"
190172 = "a"
191173 = "p"
192174 = '"'
193175 = """
194
195"""
196176 = "s"
197177 = "o"
198178 = "u"
199179 = "r"
200180 = "c"
201181 = "e"
202182 = " "
203183 = "="
204184 = " "
205185 = "'"
206186 = "'"
207187 = "'"
208188 = """
209
210"""
211189 = "\t"
212190 = "."
213191 = "m"
214192 = "e"
215193 = "s"
216194 = "s"
217195 = "a"
218196 = "g"
219197 = "e"
220198 = ","
221199 = " "
222200 = "_"
223201 = " "
224202 = "="
225203 = " "
226204 = '"'
227205 = "["
228206 = '"'
229207 = " "
230208 = "+"
231209 = " "
232210 = "d"
233211 = "e"
234212 = "l"
235213 = "("
236214 = "."
237215 = "l"
238216 = "e"
239217 = "v"
240218 = "e"
241219 = "l"
242220 = ")"
243221 = " "
244222 = "+"
245223 = " "
246224 = '"'
247225 = "]"
248226 = " "
249227 = '"'
250228 = " "
251229 = "+"
252230 = " "
253231 = " "
254232 = "."
255233 = "m"
256234 = "e"
257235 = "s"
258236 = "s"
259237 = "a"
260238 = "g"
261239 = "e"
262240 = """
263
264"""
265241 = "'"
266242 = "'"
267243 = "'"
268type = "compound"
1[
2 {
3 "log": {
4 "level": "debug",
5 "message": "I'm a noisy debug log"
6 }
7 },
8 {
9 "log": {
10 "level": "info",
11 "message": "I'm a normal info log"
12 }
13 }
14]
1[
2 {
3 "log": {
4 "message": "[debug] I'm a noisy debug log"
5 }
6 }
7]

Configuration Options

Required Options

nested(required)

A table of transforms configurations' representing the chain of transforms to be applied on incoming events. All transforms in the chain can then be referenced as an input by other components with the name <transform_name>.<nested_transform_name>. All transforms in the chain also generate internal metrics as if they were configured separately.

TypeSyntaxDefaultExample
hash[]
inputs(required)

A list of upstream source or transform IDs. Wildcards (*) are supported.

See configuration for more info.

TypeSyntaxDefaultExample
arrayliteral["my-source-or-transform-id","prefix-*"]
type(required)

The component type. This is a required field for all components and tells Vector which component to use.

TypeSyntaxDefaultExample
stringliteral["compound"]

Advanced Options

How it Works

State

This component is stateless, meaning its behavior is consistent across each input.