-
Notifications
You must be signed in to change notification settings - Fork 43
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
Use imfile instead of blackbox for file forwarding #71
Comments
We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story. The labels on this github issue will be updated when the story is started. |
It was pointed out to me that recursive wildcards are what we actually need to replace blackbox, which RSYSLOG does not offer yet. |
Actually.. maybe it is allowed. Worth following up on. |
We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story. The labels on this github issue will be updated when the story is started. |
This issue was marked as |
This issue was marked as |
This issue was marked as |
This issue was marked as |
This issue was marked as |
Re-opening this issue because I think specifying wildcard folder/file inputs is possible with rsyslog v8.25.0+. e.g. I think we could specify |
Using imfile may not be as performant as blackbox + rsyslog, we'd probably want to check that out. |
Hi @ctlong, I was there at the Bosh meeting yesterday afternoon. After checking on some old Bionic Stemcell and some recent plain Ubuntu Jammy box, I can confirm that the Here on an old Bionic Stemcell,
(and similarly on Jammy Stemcells) And here is the
Rsyslog v8.25 was released on february 2017. As Bionic stemcells have always used the About your suggestion on the
The answer is “no”, it would not be sufficient 🙂 Let me point you the already enforced
I fact, this Logrotate config looks incorrect because the In the end, following your suggestion, and staying consistent with the existing Logrotate config, Rsyslog would specify these wildcards:
Hope this might help! |
That's great to hear! Thank you for tracking this down. My main takeaway is that, in potentially implementing this breaking change, we don't need to worry about:
In terms of the paths that we'd want to watch, I think some of the wildcard paths you laid out may be duplicative. Probably something to experiment with. I also looked at the Configuration Locations in BOSH and found a few more paths that we might want to forward logs from:
Those two paths are not watched by blackbox, which means we might be ignoring them right now. |
Well, these Logrotate wildcards are the source of truth for the base Bosh contract about logs within the They are defined by the Bosh Agent here and to my experience, have evolved over time. So, the contract is:
(I’ve filed a PR to make it clear in the Bosh documentation, see cloudfoundry/docs-bosh#812) That’s right, Monit and Agent logs are typically forgotten when it comes to forwarding all VMs logs! Certainly a good thing to become more exhaustive. Agent logs may contain sensitive data though, precisely because they are usually kept private to the Bosh instance. This should double-check this with the Bosh team. |
Does using imfile plugin also read log files from the start? Currently blackbox is only tailing the log files. This means, that all log statements written when blackbox is not running are not forwarded. Hence, start and stop script logs are not forwarded. Adding the monit log file would also lead to very incomplete forwards when the file is only tailed. Since #138 was closed in favour of this issue, I would want to know, whether imfile also supports a file marker as Fluent Bit does. So that it can continue reading log files, where it stop in the previous run. At least, when the file was not rotated in the mean time. |
Hi @KarstenSchnitter, according to the docs, there shouldn't be log loss caused by restarts:
|
As of RSYSLOG v8.25.0, wildcards are allowed in imfile inputs. I believe that this means we can now replace blackbox with imfile inputs for this release.
The text was updated successfully, but these errors were encountered: