-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Using journald source while running vector in docker #2876
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
Comments
The journald source writes a checkpoint file recording the last record it handled in order to prevent duplicating records. By default, vector is configured to write those files in |
@bruceg thanks for explanation. Just to be clear |
Partly right. |
@bruceg are there action items to make it obvious users need to do this? Are we logging this information? Is this a check in the ‘validate’ sub command? I’d like to open issues for anything like that. |
The error message could be expanded to include a note about it being required for checkpoints. This is a little tricky because it's a shared routine between the file and journald sources that just returns a |
@binarylogic I've tried once again and it does not work. Here is the output and configurations:
vector.toml
shared volumes:
|
The journald source uses the journalctl program as its interface to retrieve logs from journald. As such, it must be installed in your docker image for this source to work. Please see the journald source documentation for more details. |
This is why I've opened this ticker in a first place :) Since vector offers official docker image it is expected that all features are available no matter how you run it. Some sign in docs that journald won't work with official Vector docker image would suffice for now. I'd be happy to help to make it work, but unfortunately I'm not familiar with golang (yet). Also this is why I've mentioned journalbeat from elastic stack. They got it covered – one can run journalbeat in container and read journald logs from host & push to elasticsearch. |
Thanks for the note. @Hoverbear is working on new packaging and will include journalctl in the next stable release (ref #2824). |
Checking this for #3022 |
Please note alpine does not package systemd. Once we add this. You'll need to use the debian images for this. |
#3129 adds journald to the debian image. -- Sorry I didn't get this earlier. I thought I had it covered but I had the wrong image changed. |
New nightly packages and the upcoming 0.10.0 releases of the debian image have this in it now. :)
|
Is that possible? Looks like not :(
output:
So the only way is to have some vector running on host that simply ingest journald and listens on 9000 so another more complex, dynamically configured vector can use it as a source. Is there any drawbacks?
Btw, elstic's Journalbeat works fine with this. So another approach can be use both of them..
The text was updated successfully, but these errors were encountered: