Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
deepaksb2 opened this issue Jan 24, 2024 · 2 comments

Comments

@deepaksb2
Copy link

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

@daipom
Copy link
Contributor

daipom commented Jan 24, 2024

Thanks for your report.

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

Do you mean that you installed td-agent by the msi installer, and deleted the default td-agent Service, and registered your own Windows Service by the command?

@deepaksb2
Copy link
Author

Thanks for your report.

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

Do you mean that you installed td-agent by the msi installer, and deleted the default td-agent Service, and registered your own Windows Service by the command?

I installed td-agent by msi installer, took the entire exploded package folder, uninstalled the td-agent , and then installed from CLI with customizations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants