一个基于 Qt 的多平台前端,用于系统d 的 journalctl 命令。支持本地和远程 (SSH) 数据源。
systemd provides journalctl to display and analyze its journal. Think of
the journal as a giant log file for the whole system. Different programs
(like e.g. different software/services on your system, but also the kernel) write their log entries into systemd's
journal. journalctl supports a few flags/parameters to specify what should
be displayed. QJournalctl is just a graphical user interface which displays
the journal and lets the user simply change the parameters to check the log
quickly for specific reports or errors.
Maybe you want to checkout the Changelog.
QJournalctl is available in the community repository of Archlinux and Manjaro:
sudo pacman -S qjournalctlFor other distributions, it is at the moment required to build it from sources.
g++ ≥ 4.8.1, clang ≥ 3.3)qtbase5-dev for Debian/Ubuntu; on macOS these come with the qt Homebrew tap)libssh ≥ 0.8.7Your distribution's supplied version of libssh might be too old for a successful build. You need
to build and install libssh yourself (> /Users/user_name/.bash_profile
…vcpkg install libssh:x64-windows
Now, the `libssh` binaries as well as its dependencies can be found at `/vcpkg/packages/`
### Building QJournalctl
It is possible to build `QJournalctl` using two different manners
- Using QtCreator.
- Using the `autogen_and_build.bat` script.
#### Build using `autogen_and_build.bat`
Considering that the *Install the QJournalctl Dependencies* steps are already performed, first adjust `autogen_and_build.bat` with your own paths
- Set the value of `ARCH` to either `x86` to compile for a x86 32 bit target or to `x86_64` for a x86 64 bit target
- Modify the variable `VCPKG_INSTALL_FOLDER` defined in the `autogen_and_build.bat` with the path where you have vcpkg, (i.e. set `VCPKG_INSTALL_FOLDER= \vcpkg`)
- Modify the path where Qt for the given toolchain path is found (`QTDIR` may be for instance `C:\Qt\Qt5.14.1\5.14.1\msvc2017_64`)
- Run `autogen_and_build.bat`. The application can be found at `release/` folder.
#### Build using QtCreator
First, it is needed to configure QtCreator by enabling the MSVC toolchain. Configure it for 32 and 64 bit, release and debug by navigating to `Projects > Manage Kits > add ...`
Once it is set up
- Click in the "screen" icon and select the MSVC 2017 64 bit release configuration
- Now, Start the build process using `Build > Build project "qjournalctl"`
#### Screenshots
##### Use the ssh feature to connect to remote hosts and read their logs; Save frequently used connections and benefit from password or (encrypted) keyfile support
##### Use the filter option and regular expressions to find what you are looking for
##### Finally found the interesting log entries? Directly export your selection!
##### Search the journal while it keeps itself up-to-date
##### The current boot is not enough? Search the entire (!) journal of all boots or select a previous boot暂无开放 Issues,或尚未同步最近议题。