You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-zero/stash/etc/config.json

75 lines
2.0 KiB
JSON

4 years ago
{
"Input": {
"Kafka": {
"Name": "easystash",
"Brokers": [
"172.16.186.156:19092",
"172.16.186.157:19092",
"172.16.186.158:19092",
"172.16.186.159:19092",
"172.16.186.160:19092",
"172.16.186.161:19092"
],
"Topic": "k8slog",
"Group": "pro",
"NumProducers": 16,
"MetricsUrl": "http://localhost:2222/add"
}
},
"Filters": [
{
"Action": "drop",
"Conditions": [
{
"Key": "k8s_container_name",
"Value": "-rpc",
"Type": "contains"
},
{
"Key": "level",
"Value": "info",
"Type": "match",
"Op": "and"
}
]
},
{
"Action": "remove_field",
"Fields": [
"message",
"_source",
"_type",
"_score",
"_id",
"@version",
"topic",
"index",
"beat",
"docker_container",
"offset",
"prospector",
"source",
"stream"
]
}
],
"Output": {
"ElasticSearch": {
"Hosts": [
"172.16.141.14:9200",
"172.16.141.15:9200",
"172.16.141.16:9200",
"172.16.141.17:9200",
"172.16.140.195:9200",
"172.16.140.196:9200",
"172.16.140.197:9200",
"172.16.140.198:9200",
"172.16.140.199:9200",
"172.16.140.200:9200",
"172.16.140.201:9200",
"172.16.140.202:9200"
],
"DailyIndexPrefix": "k8s_pro-"
}
}
}