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

Agent monitoring directories that dont existing at start time. #411

Open
Piponater opened this issue Aug 31, 2022 · 0 comments · Fixed by #385
Open

Agent monitoring directories that dont existing at start time. #411

Piponater opened this issue Aug 31, 2022 · 0 comments · Fixed by #385

Comments

@Piponater
Copy link

Quite often we setup our config for LOGDNA_LOG_DIRS in linux (ubuntu) to monitor only a subset of folders, some of which don't exist at the time logdna-agent is started but will in the future. E.g a dated scenario:

LOGDNA_LOG_DIRS=/logs/2022/08/30,/logs/weatherrun/2022/08/31,/logs/2022/09/01

And if a directory doesn't exist logdna will do a warning and I/O error (see below) and the directory will not get monitored even if it will eventually exist and be populated with logfiles.

[2022-08-30T23:45:01Z WARN config] /logs/weatherrun/2022/08/31/ is not a valid directory I/O error: No such file or directory (os error 2)

I understand the arguement of monitoring the parent folder instead, but due the volume of logfiles we generate this feels like a bad idea trying to monitor 1000s at once, and especially those which will no longer be updated since the day is over.

Is there/could a option be set for the agent to pick up directories its told to monitor even if they dont exist yet, I believe the v1 agent had this behaviour before?

@Piponater Piponater changed the title Agent monitoring, directories that dont existing at start time. Agent monitoring directories that dont existing at start time. Aug 31, 2022
@dkhokhlov dkhokhlov linked a pull request Jan 26, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant