|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
Kafka ingestion source configuration. |
||
| topics |
string |
,). |
topic1,topic2 |
| fromPosition |
string |
earliest and latest. |
earliest,latest |
| consumerGroup |
string |
|
consumer |
| valueType |
string |
text and json. |
text,json |
| encoding |
string |
valueType is text. |
UTF-8 |
| parseArray |
boolean |
true, each element in the array becomes a separate log entry. This parameter applies only when valueType is json. |
true |
| vpcId |
string |
|
|
| timeField |
string |
valueType is json. |
__time__ |
| timePattern |
string |
timeField. |
\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} |
| timeFormat |
string |
epoch for a Unix timestamp. |
epoch |
| timeZone |
string |
+0800. |
+0800 |
| defaultTimeSource |
string |
system (the time of the ingestion server) and kafka (the timestamp from the Kafka message). |
system,kafka |
| enableSlsContext |
boolean |
__topic__ and __partition__, to each log entry. |
true |
| nameResolutions |
string |
|
{"hostname": "192.168.1.28"} |
| communication |
string |
|
{ "protocol":"SASL_PLAINTEXT", "sasl":{ "mechanism":"PLAIN", "username":"用户名", "password":"密码" } } |
| processorId |
string |
|
ingest-processor-1756802123-953901 |
| enableVpcNat |
boolean |
true if your Kafka cluster is in a VPC and requires NAT for access. |
|
| securityGroups |
string |
,). |
|
| vswitchId |
string |
|
|
| bootstrapServers |
string |
host1:port1,host2:port2. |
192.168.1.28:9092 |
| format |
object |
|
|
|
any |
valueType. |
KafkaIngestionConfigurationSource
Updated at:
Copy as MD
Is this page helpful?