1
0
Fork 0
mirror of https://github.com/hikhvar/journaldtail.git synced 2025-12-16 10:23:54 +00:00
No description
Find a file
Christoph Petrausch f633b77962
Merge pull request #5 from SvenDowideit/journal-fields-doc
add a pointer to the journald fields doc
2019-01-18 07:15:20 +01:00
pkg Made time calculation more straight forward 2019-01-06 22:19:10 +01:00
vendor initial commit 2019-01-06 20:19:32 +01:00
.dockerignore add LOKI_URL env var for setting the URL 2019-01-14 11:06:58 +10:00
.gitignore initial commit 2019-01-06 20:19:32 +01:00
docker-compose.yml initial commit 2019-01-06 20:19:32 +01:00
Dockerfile Add an example of how I use the Docker image 2019-01-14 11:20:59 +10:00
Gopkg.lock initial commit 2019-01-06 20:19:32 +01:00
Gopkg.toml initial commit 2019-01-06 20:19:32 +01:00
main.go add LOKI_URL env var for setting the URL 2019-01-14 11:06:58 +10:00
Makefile add LOKI_URL env var for setting the URL 2019-01-14 11:06:58 +10:00
README.md add a pointer to the journald fields doc 2019-01-18 11:38:16 +10:00

journaldtail

This is a small PoC to explore how to ship journald logs to grafana loki. This code is currently work in progress.

Any comments and suggestions are welcome.

I made this project since the promtail community is not sure if promtail will support journald. (see: https://github.com/grafana/loki/pull/26#issuecomment-446961639 )

Building

To build this, you'll need cgo and the systemd headers installed - for example, on a Debian based system, apt-get install libsystemd-dev.

Journal fields

When you import Journald logs to loki, you'll see a large number of log labels. Its worth reading the systemd journal fields documentation to get a feel for what is available to you.

ToDo

  • Fix logging infrastructure in code
  • Enable configuration via flagext
  • Support relabeling config like in promtail
  • Tests
  • Build and release pipeline
  • Documentation
  • Store journald cursor position on disk to allow restart of journaldtail