fluentd icon indicating copy to clipboard operation
fluentd copied to clipboard

Td-agent windows fluentd connector log file is not getting rolled over (only td-agent.log file)

Open deepaksb2 opened this issue 5 months ago • 2 comments

Describe the bug

We have installed td-agent on windows 2019 server (or any version) and observed the td-agent.log file is not getting rolled over when log file size is reached to specified --log-rotate-size.

td-agent is installed using CLI with below command

call "%FLUENTD_EXECUTABLE%" --reg-winsvc i --winsvc-name %CONNECTOR_NAME% --winsvc-display-name %CONNECTOR_NAME% --winsvc-desc "FluentD log collection" --reg-winsvc-fluentdopt '-c %ETC_TD_AGENT_DIR%/td-agent.conf -p %ETC_TD_AGENT_DIR%/plugin --log %TD_AGENT_DIR%/td-agent.log --log-rotate-age 10 --log-rotate-size 100000'

The worker thread log files are rolling over as expected

To Reproduce

Install the td-agent with command line arguments and td-agent.log file is not rolling over after it reached to log-rotate-size

Expected behavior

The td-agent log file should be rolled over

Your Environment

- Fluentd version:fluentd 1.16.3 
- TD Agent version: td-agent 4.5.2 
- Operating system: Windows 2019
- Kernel version:

Your Configuration

Any configuration with default values

Your Error Log

No error seen

Additional context

This only happens in windows fluentd and not on linux environment

deepaksb2 avatar Jan 24 '24 05:01 deepaksb2