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

Log file handlers left open after rotation #63

Closed
Grumblesmith opened this issue May 22, 2018 · 5 comments
Closed

Log file handlers left open after rotation #63

Grumblesmith opened this issue May 22, 2018 · 5 comments
Assignees

Comments

@Grumblesmith
Copy link

File handles are sometimes being left open for logs. Initial investigation indicated this is because all the agent processes are writing to the log file, and that concurrency isn't being handled well by the TimedRotatingFileHandler.

@TheConnMan
Copy link
Contributor

@TheConnMan
Copy link
Contributor

The logging handler we use is OOTB from Python. Also, the upstream Diamond project has not changed the timedrotating.py file at all.

As this is a minor, I recommend either opening an issue on the upstream Diamond project to try getting some more experienced eyes on it or using a new logging handler altogether.

@TheConnMan
Copy link
Contributor

We're going to install a pure Diamond agent and see if we get the same issue.

@TheConnMan
Copy link
Contributor

Issue opened on the Diamond project: python-diamond/Diamond#720

@Grumblesmith Grumblesmith changed the title Log file rotation issue Log file handlers left open after rotation Nov 6, 2018
codytipton added a commit that referenced this issue Nov 30, 2018
Provide class ConcurrentRotatingFileHandler and import concurrent_log_handler before logging.FileConfig()

2nd of 3 PR's addressing #63
codytipton added a commit to Netuitive/omnibus-netuitive-agent that referenced this issue Nov 30, 2018
Make ConcurrentRotatingFileHandler the default in netuitive-agent.conf. 3rd of 3 PR's fixing Netuitive/netuitive-diamond#63
@codytipton codytipton self-assigned this Nov 30, 2018
@codytipton
Copy link
Collaborator

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

3 participants