Home > OS > Consult fluentd configuration file how to configure time time format for the timestamp?
Consult fluentd configuration file how to configure time time format for the timestamp?
Time:10-15
The ELK, new machine as fluentd client, fluentd version 1.2.6,/etc/td - agent/td - agent. The conf configuration is as follows:
@ type forward Send_timeout 60 s Recover_wait 10 s Heartbeat_interval 1 s Phi_threshold 16 Hard_timeout 60 s The name logserver The host X.X.X.X The port XXXX
@ type file The path/data/log/td - agent/forward - failed
Pushed to the client request log server log format for Tag time=(date) (month) (year) when the minutes record request json= Because the format of the time is not a timestamp, which leads to the log write less than elasticsearch, according to the official documentation configuration time_key time_format doesn't work,