@@ -185,10 +185,14 @@ supported parameters
185
185
186
186
Without ` <transport tls> ` , in\_ http uses HTTP.
187
187
188
+ ### ` <parse> ` directive
189
+
190
+ Use parser plugin to parse incoming data. See also [ Handle other formats using parser plugins] ( #handle-other-formats-using-parser-plugins ) section.
191
+
188
192
189
193
### format (deprecated)
190
194
191
- Deprecated parameter. Use the ` <parse> ` directive [ as explained below ] ( #handle-various-formats-using-parser-plugins ) instead.
195
+ Deprecated parameter. Use ` <parse> ` directive instead.
192
196
193
197
194
198
## Tips & Tricks
@@ -227,7 +231,7 @@ $ curl -X POST -d "$msgpack" -H 'Content-Type: application/msgpack' \
227
231
228
232
### Handle other formats using parser plugins
229
233
230
- You can handle various input formats by using the ` <parser > ` directive.
234
+ You can handle various input formats by using the ` <parse > ` directive.
231
235
For example, add the following settings to the configuration file:
232
236
233
237
```
@@ -251,9 +255,9 @@ $ curl -X POST -d '123456:awesome' http://localhost:9880/app.log
251
255
Many other formats (e.g. csv/syslog/nginx) are also supported as well.
252
256
You can find the full list of supported formats in [ "Parser Plugin Overview"] ( /plugins/parser/README.md ) .
253
257
254
- Note that parser plugins do not support [ the batch mode] ( #handle-large-data-with-batch-mode ) . So if you want to use bulk
258
+ Note: Some parser plugins do not support [ the batch mode] ( #handle-large-data-with-batch-mode ) . So if you want to use bulk
255
259
insertion for handling a large data set, please consider to keep using
256
- the default JSON (or MessagePack) format.
260
+ the default JSON (or MessagePack) format or write batch mode supported parser(return array object) .
257
261
258
262
259
263
## Enhance Performance
@@ -266,7 +270,7 @@ a JSON/MessagePack array.
266
270
267
271
```
268
272
# Send multiple events as a JSON array
269
- $ curl -X POST -d " json=[{"foo":"bar"},{"abc":"def"},{"xyz":"123"}]" \
273
+ $ curl -X POST -d ' json=[{"foo":"bar"},{"abc":"def"},{"xyz":"123"}]' \
270
274
http://localhost:9880/app.log
271
275
```
272
276
0 commit comments