-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
How to make Promtail worked with Jornald #1057
Labels
Comments
Hi, it looks like the binaries we shipped don't have journal support enabled, but they should. I'll look into it, but if you don't want to wait for a fix, you can try building Promtail yourself by cloning Loki and running |
i ll wait, thanks
ср, 25 сент. 2019 г. в 19:00, Robert Fratto <notifications@github.com>:
… Hi, it looks like the binaries we shipped don't have journal support
enabled, but they should. I'll look into it, but if you don't want to wait
for a fix, you can try building Promtail yourself by cloning Loki and
running make promtail.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1057?email_source=notifications&email_token=AEFMORJ5GRBLSBN3NPCOUGTQLODITA5CNFSM4I2OMWA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7SNSMQ#issuecomment-535091506>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEFMORIGEV5IKMGVKJD74VTQLODITANCNFSM4I2OMWAQ>
.
|
rfratto
added a commit
to rfratto/loki
that referenced
this issue
Sep 26, 2019
The published binary of promtail for linux/amd64 was not built with CGO support, so journal tailing could not be used. This is kind of a dirty hack: we just re-build promtail at the end of building everything else with CGO enabled. It's not clear how it could be done more cleanly. Fixes grafana#1057.
cyriltovena
pushed a commit
that referenced
this issue
Oct 2, 2019
* build: override promtail release build with cgo-enabled binary The published binary of promtail for linux/amd64 was not built with CGO support, so journal tailing could not be used. This is kind of a dirty hack: we just re-build promtail at the end of building everything else with CGO enabled. It's not clear how it could be done more cleanly. Fixes #1057. * build: break out gox builds
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment: CentOS7
https://github.com/grafana/loki/releases/download/v0.3.0/loki_linux_amd64.gz
https://github.com/grafana/loki/releases/download/v0.3.0/promtail_linux_amd64.gz
on the same host
/etc/promtail/promtail_config.yaml
/etc/systemd/journald.conf
[root@loki-01 ~]# ls /var/log/journal/93f219319dd5bdb42d9f1c8f2e23d329/system.journal
/var/log/journal/93f219319dd5bdb42d9f1c8f2e23d329/system.journal
In Grafana I can see only messages logs
What I am doing wrong?
Please help)
The text was updated successfully, but these errors were encountered: