作者 kevin

update readme

@@ -15,16 +15,17 @@ gostash -f etc/config.yaml @@ -15,16 +15,17 @@ gostash -f etc/config.yaml
15 config.yaml示例如下: 15 config.yaml示例如下:
16 16
17 ```yaml 17 ```yaml
18 -Input: 18 +Processors:
  19 +- Input:
19 Kafka: 20 Kafka:
20 Name: gostash 21 Name: gostash
21 Brokers: 22 Brokers:
22 - - 172.16.186.16:19092  
23 - - 172.16.186.17:19092 23 + - "172.16.186.16:19092"
  24 + - "172.16.186.17:19092"
24 Topic: k8slog 25 Topic: k8slog
25 Group: pro 26 Group: pro
26 NumProducers: 16 27 NumProducers: 16
27 -Filters: 28 + Filters:
28 - Action: drop 29 - Action: drop
29 Conditions: 30 Conditions:
30 - Key: k8s_container_name 31 - Key: k8s_container_name
@@ -50,11 +51,11 @@ Filters: @@ -50,11 +51,11 @@ Filters:
50 - prospector 51 - prospector
51 - source 52 - source
52 - stream 53 - stream
53 -Output: 54 + Output:
54 ElasticSearch: 55 ElasticSearch:
55 Hosts: 56 Hosts:
56 - - 172.16.141.4:9200  
57 - - 172.16.141.5:9200 57 + - "172.16.141.4:9200"
  58 + - "172.16.141.5:9200"
58 DailyIndexPrefix: k8s_pro- 59 DailyIndexPrefix: k8s_pro-
59 ``` 60 ```
60 61
@@ -18,7 +18,7 @@ import ( @@ -18,7 +18,7 @@ import (
18 18
19 const dateFormat = "2006.01.02" 19 const dateFormat = "2006.01.02"
20 20
21 -var configFile = flag.String("f", "etc/config.json", "Specify the config file") 21 +var configFile = flag.String("f", "etc/config.yaml", "Specify the config file")
22 22
23 func main() { 23 func main() {
24 flag.Parse() 24 flag.Parse()