You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'm trying to eliminate the forest plugin that I used before for dynamically generating paths for file output. I need to have files in the format app.2024020813-0.log, where '0' represents the worker_id. Currently, end of my configuration that works is:
But because of the 1h timekey the flush interval is ignored - it takes really long time to flush the buffer to the logfile. How can I change the setting to flush every 3s (I want to see actual logs) and have the file in format "app.%Y%m%d%H-#{worker_id}.log"? I tried time_slice_format and time_format, but the output file format needs the timekey (without timekey the dateformat has incorrect hours - it looks like 2024020800-0 even at 11am). Is there any workaround?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
'm trying to eliminate the forest plugin that I used before for dynamically generating paths for file output. I need to have files in the format app.2024020813-0.log, where '0' represents the worker_id. Currently, end of my configuration that works is:
But because of the 1h timekey the flush interval is ignored - it takes really long time to flush the buffer to the logfile. How can I change the setting to flush every 3s (I want to see actual logs) and have the file in format "app.%Y%m%d%H-#{worker_id}.log"? I tried time_slice_format and time_format, but the output file format needs the timekey (without timekey the dateformat has incorrect hours - it looks like 2024020800-0 even at 11am). Is there any workaround?
My FluentD version is 1.16.3-2.0
Thank you
Beta Was this translation helpful? Give feedback.
All reactions