Fluentd records logs locally, and the start time of the log is configured.

< H2 > fluentd profile: < / H2 >
<source>                                                                                                                                             
  @type forward                                                                                                                                      
  bind 0.0.0.0                                                                                                                                       
  port 16537                                                                                                                                         
</source>                                                                                                                                            
                                                                                                                                                     
<match app.access>                                                                                                                              
  @type file                                                                                                                                         
  path /var/log/app-${tag[1]}.%Y-%m-%d.%H%M.log                                                                                          
  compress gzip                                                                                                                                      
  append true                                                                                                                                        
  <buffer tag,time>                                                                                                                                  
    @type file                                                                                                                                       
    path /tmp/buffer/app-access                                                                                                                 
    timekey_use_utc true       //                                                                                                                      
    timekey    1d                                                                                                                                    
    timekey_wait 0                                                                                                                                   
    flush_mode interval                                                                                                                              
    flush_interval 86400                                                                                                                             
  </buffer>                                                                                                                                          
</match>   
< H2 > output log file time < / H2 >

start:
....
:

how do I configure log output with a start time of 0: 00? Ask for advice

Mar.10,2021
Menu