@@ -110,25 +110,30 @@ static int cb_tcp_exit(void *data, struct flb_config *config)
110110 return 0 ;
111111}
112112
113- /* Configuration properties map */
114- static struct flb_config_map config_map [] = {
115- {
116- FLB_CONFIG_MAP_STR , "format" , NULL ,
117- 0 , FLB_FALSE , 0 ,
118- NULL
119- },
120- {
121- FLB_CONFIG_MAP_STR , "json_date_format" , NULL ,
122- 0 , FLB_FALSE , 0 ,
123- NULL
124- },
125- {
126- FLB_CONFIG_MAP_STR , "json_date_key" , "date" ,
127- 0 , FLB_TRUE , offsetof(struct flb_out_tcp , json_date_key ),
128- NULL
129- },
130- /* EOF */
131- {0 }
113+ /* Configuration properties map */
114+ static struct flb_config_map config_map [] = {
115+ {
116+ FLB_CONFIG_MAP_STR , "format" , "msgpack" ,
117+ 0 , FLB_FALSE , 0 ,
118+ "Specify the payload format, supported formats: msgpack, json, "
119+ "json_lines or json_stream."
120+ },
121+
122+ {
123+ FLB_CONFIG_MAP_STR , "json_date_format" , "double" ,
124+ 0 , FLB_FALSE , 0 ,
125+ "Specify the format of the date, supported formats: double, iso8601 "
126+ "(e.g: 2018-05-30T09:39:52.000681Z) and epoch."
127+ },
128+
129+ {
130+ FLB_CONFIG_MAP_STR , "json_date_key" , "date" ,
131+ 0 , FLB_TRUE , offsetof(struct flb_out_tcp , json_date_key ),
132+ "Specify the name of the date field in output."
133+ },
134+
135+ /* EOF */
136+ {0 }
132137};
133138
134139/* Plugin reference */
0 commit comments